/* ==========================================================================
   CAMPO MINI APP — 3D CYBER GAME HUB STYLESHEET
   ========================================================================== */

:root {
    --bg-dark: #070913;
    --bg-card: rgba(15, 23, 42, 0.72);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --border-subtle: rgba(255, 255, 255, 0.09);
    --border-glow: rgba(0, 240, 255, 0.35);

    /* Neon Accents */
    --neon-cyan: #00f0ff;
    --neon-purple: #a855f7;
    --neon-magenta: #f43f5e;
    --neon-gold: #f59e0b;
    --neon-green: #10b981;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    padding-bottom: 95px; /* Space for bottom dock */
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

#app {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 12px 16px 20px 16px;
}

/* ================= HEADER ================= */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    margin-bottom: 18px;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.user-meta {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 15px;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-status-badge {
    font-size: 11px;
    font-weight: 700;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-balances {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.balance-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 13px;
    font-weight: 800;
    font-family: var(--font-heading);
}

.euro-badge {
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.energy-badge {
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.25);
    font-size: 11px;
    padding: 2px 8px;
}

/* ================= VIEW PANELS ================= */
.view-panel {
    display: none;
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.view-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title-row {
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.section-sub {
    font-size: 12px;
    color: var(--text-secondary);
}

.subsection-header {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    margin: 20px 0 12px 0;
    color: #cbd5e1;
}

/* ================= 1. GAMES TAB ================= */
.game-selector-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.game-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 10px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    overflow: hidden;
}

.game-card.active {
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.12);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}

.gc-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.gc-title {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

.gc-tag {
    font-size: 9px;
    font-weight: 700;
    color: var(--neon-cyan);
}

.game-arena-container {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 18px 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.game-view-sub {
    display: none;
}

.game-view-sub.active {
    display: block;
}

/* --- SLOTS 777 --- */
.slots-machine {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slot-reels-frame {
    position: relative;
    display: flex;
    gap: 12px;
    background: #02040a;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 18px 14px;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 240, 255, 0.2);
    margin-bottom: 16px;
    width: 100%;
    justify-content: center;
}

.slot-reel {
    width: 80px;
    height: 100px;
    background: linear-gradient(180deg, #090d16 0%, #1e293b 50%, #090d16 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    transition: transform 0.1s ease;
}

.slot-reel.spinning {
    animation: reelBlur 0.12s linear infinite;
}

@keyframes reelBlur {
    0% { transform: translateY(-8px); filter: blur(2px); }
    50% { transform: translateY(8px); filter: blur(2px); }
    100% { transform: translateY(-8px); filter: blur(2px); }
}

.payline-laser {
    position: absolute;
    top: 50%;
    left: 8px;
    right: 8px;
    height: 2px;
    background: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 8px #00f0ff;
    pointer-events: none;
    transform: translateY(-50%);
}

.slots-payout-info {
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
    text-align: center;
    margin-bottom: 14px;
    min-height: 22px;
}

/* Controls */
.bet-controls {
    width: 100%;
    margin-bottom: 14px;
}

.bet-input-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.bet-input-wrap label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.bet-input-wrap input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 15px;
    text-align: right;
    width: 140px;
}

.quick-bets {
    display: flex;
    gap: 6px;
}

.qb-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: #cbd5e1;
    border-radius: 8px;
    padding: 6px 0;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qb-btn:active {
    background: var(--neon-cyan);
    color: #000;
}

/* Action Buttons */
.action-btn {
    position: relative;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    border: 1px solid rgba(56, 189, 248, 0.5);
    border-radius: 14px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.4);
    transition: all 0.2s ease;
}

.action-btn:active {
    transform: scale(0.98);
}

.spin-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.drop-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: rgba(52, 211, 153, 0.6);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.crash-btn {
    background: linear-gradient(135deg, #f43f5e, #be123c);
    border-color: rgba(251, 113, 133, 0.6);
    box-shadow: 0 4px 20px rgba(244, 63, 94, 0.4);
}

/* --- PLINKO CANVAS --- */
.plinko-board-wrapper {
    display: flex;
    justify-content: center;
    background: #030712;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    margin-bottom: 12px;
}

#plinko-canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

.plinko-settings {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.setting-pill {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
}

.lines-select, .risk-select {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.line-btn, .risk-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    border-radius: 6px;
    padding: 4px 0;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.line-btn.active, .risk-btn.active {
    background: var(--neon-cyan);
    color: #000;
}

/* --- CRASH CANVAS --- */
.crash-board-wrapper {
    position: relative;
    background: #030712;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

#crash-canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

.crash-live-multiplier {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.8);
}

.crash-status-sub {
    position: absolute;
    bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

/* --- FORTUNE WHEEL --- */
.wheel-board-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.wheel-pointer {
    position: absolute;
    top: -8px;
    font-size: 28px;
    color: #f59e0b;
    z-index: 10;
    text-shadow: 0 0 10px #f59e0b;
}

.wheel-result-info {
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
    text-align: center;
    margin-bottom: 12px;
}

/* ================= 2. CASES TAB ================= */
.case-roulette-container {
    position: relative;
    background: #020617;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    height: 110px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
}

.roulette-indicator {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #f59e0b;
    box-shadow: 0 0 12px #f59e0b;
    transform: translateX(-50%);
    z-index: 5;
}

.roulette-track {
    display: flex;
    gap: 8px;
    position: absolute;
    left: 0;
    top: 10px;
    transition: transform 4s cubic-bezier(0.12, 0.8, 0.15, 1);
}

.roulette-item {
    width: 90px;
    height: 90px;
    background: rgba(15, 23, 42, 0.85);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.roulette-item.gold {
    border-color: #ffd700;
    background: linear-gradient(180deg, #382203, #140c01);
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.8), inset 0 0 12px rgba(255, 215, 0, 0.4);
}
.roulette-item.covert {
    border-color: #eb4b4b;
    background: linear-gradient(180deg, #380b0f, #140305);
    box-shadow: 0 0 16px rgba(235, 75, 75, 0.8), inset 0 0 12px rgba(235, 75, 75, 0.4);
}
.roulette-item.classified {
    border-color: #d32ce6;
    background: linear-gradient(180deg, #2b0930, #100213);
    box-shadow: 0 0 14px rgba(211, 44, 230, 0.7), inset 0 0 10px rgba(211, 44, 230, 0.35);
}
.roulette-item.restricted {
    border-color: #8847ff;
    background: linear-gradient(180deg, #1b0a36, #0b0417);
    box-shadow: 0 0 12px rgba(136, 71, 255, 0.65), inset 0 0 8px rgba(136, 71, 255, 0.3);
}
.roulette-item.milspec {
    border-color: #4b69ff;
    background: linear-gradient(180deg, #0c1538, #040717);
    box-shadow: 0 0 10px rgba(75, 105, 255, 0.5), inset 0 0 6px rgba(75, 105, 255, 0.25);
}
.roulette-item.common {
    border-color: #475569;
    background: linear-gradient(180deg, #131b2b, #080d17);
    box-shadow: 0 0 6px rgba(94, 152, 217, 0.3);
}

/* Fallback aliases */
.roulette-item.mythic { border-color: #ffd700; box-shadow: 0 0 14px rgba(255, 215, 0, 0.7); }
.roulette-item.legendary { border-color: #ffd700; box-shadow: 0 0 12px rgba(255, 215, 0, 0.6); }
.roulette-item.epic { border-color: #d32ce6; box-shadow: 0 0 10px rgba(211, 44, 230, 0.6); }
.roulette-item.rare { border-color: #4b69ff; box-shadow: 0 0 8px rgba(75, 105, 255, 0.5); }

.active-case-controls {
    margin-bottom: 16px;
}

.active-case-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
    color: #f8fafc;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.case-card:active {
    transform: scale(0.97);
}

.case-card.selected {
    border-color: #f59e0b;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}

.case-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.case-icon {
    font-size: 28px;
}

.case-count-pill {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 800;
}

.case-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 4px;
}

.case-price {
    font-size: 12px;
    font-weight: 700;
    color: #38bdf8;
}

/* ================= 3. 3D CARDS TAB ================= */
.card-3d-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 280px;
    perspective: 1000px;
    margin-bottom: 14px;
}

.card-3d-wrapper {
    width: 170px;
    height: 250px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

.card-3d-inner {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.card-front {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0c4a6e, #0284c7);
    border: 3px solid #38bdf8;
    border-radius: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}

.card-foil-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.35) 40%, rgba(0, 240, 255, 0.45) 50%, rgba(232, 121, 249, 0.45) 60%, transparent 80%);
    background-size: 200% 200%;
    animation: rainbowShift 4s ease infinite;
    mix-blend-mode: overlay;
    pointer-events: none;
}

@keyframes rainbowShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.card-suit {
    font-size: 16px;
    color: #fff;
    font-weight: 800;
}

.card-suit.bot-right {
    text-align: right;
    transform: rotate(180deg);
}

.card-center-graphic {
    font-size: 58px;
    text-align: center;
}

.card-title-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 13px;
    text-align: center;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.card-details-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.card-rarity-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.card-rarity-badge.mythic { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid #38bdf8; }
.card-rarity-badge.legendary { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid #f59e0b; }
.card-rarity-badge.epic { background: rgba(168, 85, 247, 0.2); color: #a855f7; border: 1px solid #a855f7; }
.card-rarity-badge.rare { background: rgba(59, 130, 246, 0.2); color: #3b82f6; border: 1px solid #3b82f6; }
.card-rarity-badge.common { background: rgba(100, 116, 139, 0.2); color: #94a3b8; border: 1px solid #64748b; }

.card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.skins-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.skin-thumb-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 8px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.skin-thumb-card.active {
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.skin-thumb-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.skin-thumb-name {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ================= 4. MAP TAB ================= */
.map-interactive-view {
    background: #020617;
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 14px;
}

.map-hud-overlay {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 12px;
}

.tactical-hex-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 380px;
    overflow-y: auto;
}

.territory-node {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 10px;
}

.node-title {
    font-size: 12px;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 4px;
}

.node-meta {
    font-size: 11px;
    color: #38bdf8;
}

/* ================= 5. PROFILE TAB ================= */
.profile-hero-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 16px;
}

.hero-avatar-ring {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.hero-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 900;
}

.hero-uid {
    font-size: 12px;
    color: var(--text-secondary);
}

.hero-badge-row {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.badge-vip {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid #fbbf24;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
}

.badge-rating {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border: 1px solid #38bdf8;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
}

.currencies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.curr-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 12px;
}

.curr-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.curr-title {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 700;
}

.curr-val {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 900;
    color: #fff;
}

.crypto-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.crypto-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 12px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.res-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 8px;
    font-size: 11px;
    text-align: center;
}

/* ================= 6. LEADERBOARD TAB ================= */
.lb-type-selector {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.lb-tab-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: #cbd5e1;
    border-radius: 10px;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.lb-tab-btn.active {
    background: var(--neon-cyan);
    color: #000;
    border-color: var(--neon-cyan);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 10px 14px;
}

.lb-rank {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 16px;
    width: 28px;
}

.lb-rank.gold { color: #f59e0b; }
.lb-rank.silver { color: #94a3b8; }
.lb-rank.bronze { color: #d97706; }

.lb-user-tag {
    font-weight: 800;
    font-size: 13px;
    flex: 1;
    margin-left: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-val {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 14px;
    color: #38bdf8;
}

/* ================= BOTTOM NAVBAR DOCK ================= */
.app-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: rgba(7, 9, 19, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 10px 14px 10px;
    z-index: 100;
    max-width: 480px;
    margin: 0 auto;
}

.nav-item {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.nav-icon {
    font-size: 22px;
    transition: transform 0.2s ease;
}

.nav-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.nav-item.active {
    color: var(--neon-cyan);
}

.nav-item.active .nav-icon {
    transform: translateY(-3px) scale(1.15);
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6));
}

/* ================= MODAL ================= */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.active {
    display: flex;
}

.modal-dialog {
    position: relative;
    background: #0f172a;
    border: 2px solid #f59e0b;
    border-radius: 24px;
    padding: 24px 20px;
    width: 100%;
    max-width: 340px;
    text-align: center;
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.4);
    animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

.dropped-icon {
    font-size: 64px;
    margin: 12px 0;
    animation: dropBounce 1s infinite alternate ease-in-out;
}

@keyframes dropBounce {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
}

.dropped-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 18px;
    color: #fff;
    margin-bottom: 6px;
}

.dropped-rarity {
    font-size: 12px;
    font-weight: 800;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   CLOSED BETA RESTRICTION SCREEN (ADMIN ONLY)
   ========================================================================== */
.closed-beta-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background: radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.25) 0%, rgba(6, 8, 18, 0.98) 70%);
    backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.cb-card {
    background: rgba(18, 22, 45, 0.85);
    border: 1px solid rgba(139, 92, 246, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    padding: 36px 24px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: fadeInModal 0.4s ease-out;
}

.cb-icon-box {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(139, 92, 246, 0.25));
    border: 1px solid rgba(239, 68, 68, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.cb-lock-emoji {
    font-size: 38px;
    filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.6));
}

.cb-pulse-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 2px solid rgba(239, 68, 68, 0.4);
    animation: pulseRing 2s infinite ease-out;
}

@keyframes pulseRing {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 0.2; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.cb-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #fff;
    margin: 0;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.cb-badge {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.3));
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
}

.cb-desc {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.55;
    margin: 4px 0 8px;
}

.cb-user-info {
    font-size: 12px;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.35);
    padding: 8px 14px;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
}

.cb-unauthorized {
    color: #ef4444;
    font-weight: 700;
}

.cb-footer-note {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.cb-footer-note a {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 700;
}

.cb-btn-tg {
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    margin-top: 6px;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.cb-btn-tg:active {
    transform: scale(0.97);
    filter: brightness(0.9);
}

/* ==========================================================================
   TELEGRAM CUSTOM EMOJI RENDERER
   ========================================================================== */
.tg-custom-emoji {
    width: 1.25em;
    height: 1.25em;
    vertical-align: -0.22em;
    display: inline-block;
    object-fit: contain;
    margin: 0 1px;
}

/* ==========================================================================
   5x3 SLOTS REELS MACHINE
   ========================================================================== */
.slot-reels-frame.5x3-reels {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    padding: 12px 8px;
    background: radial-gradient(circle at 50% 50%, rgba(20, 24, 55, 0.95), rgba(8, 10, 24, 0.98));
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 18px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9), 0 10px 30px rgba(139, 92, 246, 0.15);
    position: relative;
    overflow: hidden;
}

.slot-reel-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(14, 18, 40, 0.7);
    border-radius: 12px;
    padding: 6px 2px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.5);
}

.reel-cell {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
    user-select: none;
    overflow: hidden;
}

.slot-sym-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.reel-col-spinning {
    filter: blur(2px);
    transform: scale(0.97);
}

.reel-col-bounce {
    animation: reelBounceStop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes reelBounceStop {
    0% { transform: translateY(-12px); }
    50% { transform: translateY(6px); }
    100% { transform: translateY(0); }
}

.reel-cell.win-highlight {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.35), rgba(249, 115, 22, 0.45));
    border: 2px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.85), inset 0 0 10px rgba(255, 215, 0, 0.5);
    transform: scale(1.1);
    z-index: 2;
    animation: winPulse 0.6s infinite alternate ease-in-out;
}

.reel-cell.win-highlight .slot-sym-img {
    filter: drop-shadow(0 0 8px #ffd700);
}

.tg-custom-emoji {
    width: 22px;
    height: 22px;
    vertical-align: -4px;
    display: inline-block;
    object-fit: contain;
    margin: 0 1px;
}

@keyframes winPulse {
    from { transform: scale(1.05); filter: drop-shadow(0 0 5px #facc15); }
    to { transform: scale(1.15); filter: drop-shadow(0 0 15px #f59e0b); }
}

/* ==========================================================================
   5. EMPIRE BOSS ARENA ("ИМП БОСС АТАКА")
   ========================================================================== */
.boss-arena-card {
    background: linear-gradient(180deg, rgba(28, 18, 38, 0.85) 0%, rgba(15, 10, 22, 0.95) 100%);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 24px;
    padding: 20px 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(239, 68, 68, 0.15);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.boss-portrait-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(239, 68, 68, 0.5);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.boss-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: contrast(1.1) brightness(0.95);
    transition: transform 0.5s ease;
}

.boss-aura-fx {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(220, 38, 38, 0.4) 100%);
    pointer-events: none;
}

.boss-overlay-stats {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.boss-badge-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}

.boss-badge-empire {
    font-size: 12px;
    font-weight: 700;
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.2);
    padding: 3px 8px;
    border-radius: 6px;
}

.boss-hp-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.boss-hp-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: #cbd5e1;
}

.boss-hp-bar {
    width: 100%;
    height: 14px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

.boss-hp-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc2626, #ef4444, #f87171);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
    transition: width 0.3s ease;
}

.boss-loadout-panel {
    display: flex;
    gap: 10px;
}

.weapon-card {
    flex: 2;
    background: rgba(30, 20, 45, 0.7);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.weapon-icon {
    font-size: 28px;
}

.weapon-meta {
    flex: 1;
}

.weapon-name {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
}

.weapon-dmg {
    font-size: 11px;
    font-weight: 700;
    color: #f59e0b;
}

.btn-upgrade-gun {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.energy-pill {
    flex: 1.2;
    background: rgba(20, 15, 35, 0.7);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.energy-icon {
    font-size: 22px;
}

.energy-meta {
    display: flex;
    flex-direction: column;
}

.energy-title {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
}

.energy-val {
    font-size: 14px;
    font-weight: 800;
    color: #c084fc;
}

.boss-reward-banner {
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.2), rgba(249, 115, 22, 0.25));
    border: 1px solid rgba(234, 179, 8, 0.4);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.3s ease;
}

.boss-attack-btn {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.5);
}

/* ==========================================================================
   6. DURAK & UNO CARD TABLES
   ========================================================================== */
.durak-table-card, .uno-table-card {
    background: radial-gradient(circle at 50% 40%, rgba(13, 50, 30, 0.85) 0%, rgba(6, 20, 12, 0.95) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 0 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.durak-opponent-row, .uno-opponent-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.opp-badge {
    font-weight: 700;
    color: #86efac;
    font-size: 13px;
}

.opp-cards-count {
    font-size: 12px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
}

.durak-field {
    min-height: 120px;
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 12px;
}

.durak-trump-deck {
    position: relative;
    width: 65px;
    height: 95px;
}

.durak-deck-stack {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #1e3a8a;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4px;
    box-sizing: border-box;
}

.durak-trump-card {
    position: absolute;
    bottom: -10px;
    right: -14px;
    width: 60px;
    height: 85px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transform: rotate(90deg);
}

.dt-rank {
    font-size: 16px;
    font-weight: 900;
    color: #0f172a;
}

.dt-suit {
    font-size: 20px;
}

.durak-battle-slots {
    flex: 1;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.empty-field-hint {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    font-weight: 600;
}

.durak-slot-pair {
    position: relative;
    width: 50px;
    height: 75px;
}

.card-played {
    position: absolute;
    width: 50px;
    height: 72px;
    background: #fff;
    border-radius: 6px;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.card-defended {
    top: 10px;
    left: 8px;
    transform: rotate(6deg);
    border: 2px solid #10b981;
}

.durak-cards-hand, .uno-cards-hand {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 4px;
    scroll-behavior: smooth;
}

.hand-card {
    min-width: 50px;
    height: 74px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
    border: 1px solid #cbd5e1;
}

.hand-card.red-suit { color: #dc2626; }
.hand-card.black-suit { color: #0f172a; }

.hand-card:hover, .hand-card:active {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.durak-actions-row {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.action-btn-sm {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.durak-btn-bito {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
}

.durak-btn-take {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
}

/* ==========================================================================
   UNO CARDS
   ========================================================================== */
.uno-center-field {
    display: flex;
    align-items: center;
    justify-content: space-around;
    min-height: 110px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 16px;
    padding: 12px;
}

.uno-draw-deck {
    width: 60px;
    height: 85px;
    background: #0f172a;
    border: 2px solid #ef4444;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

.uno-deck-label {
    font-size: 14px;
    font-weight: 900;
    color: #facc15;
}

.uno-cards-left {
    font-size: 10px;
    color: #94a3b8;
}

/* AUTHENTIC CAMPO BOT UNO CARDS (drawMiniUnoCard) */
.uno-card {
    position: relative;
    width: 64px;
    height: 92px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    border: 3px solid #ffffff;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
    user-select: none;
    overflow: hidden;
    flex-shrink: 0;
}

.uno-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    z-index: 4;
}

.uno-card-oval {
    position: absolute;
    width: 50px;
    height: 68px;
    background: #ffffff;
    border-radius: 50%;
    transform: rotate(-22deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.uno-card.wild .uno-card-oval {
    background: #0f172a;
    border: 2px solid #ffffff;
}

.uno-card-symbol {
    position: relative;
    z-index: 2;
    font-size: 26px;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.uno-corner {
    position: absolute;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    z-index: 3;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.uno-corner.tl { top: 3px; left: 4px; }
.uno-corner.br { bottom: 3px; right: 4px; transform: rotate(180deg); }

.uno-card.red { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.uno-card.red .uno-card-symbol { color: #dc2626; }
.uno-card.yellow { background: linear-gradient(135deg, #facc15 0%, #eab308 100%); }
.uno-card.yellow .uno-card-symbol { color: #ca8a04; }
.uno-card.yellow .uno-corner { color: #1e293b; text-shadow: none; }
.uno-card.green { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }
.uno-card.green .uno-card-symbol { color: #16a34a; }
.uno-card.blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.uno-card.blue .uno-card-symbol { color: #2563eb; }
.uno-card.wild { background: conic-gradient(#ef4444, #facc15, #22c55e, #3b82f6, #ef4444); }
.uno-card.wild .uno-card-symbol { color: #ffd700; text-shadow: 0 0 8px rgba(255, 215, 0, 0.8); }

.uno-card:hover, .uno-card:active {
    transform: translateY(-8px) scale(1.06);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.65), 0 0 15px rgba(255, 255, 255, 0.4);
}

.uno-active-color-indicator {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
}

.uno-shout-btn {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

/* ==========================================================================
   7. CHESS & CHECKERS 8x8 BOARD
   ========================================================================== */
.board-game-card {
    background: rgba(18, 22, 45, 0.85);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.bg-header-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bg-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.bg-turn-status {
    font-size: 12px;
    font-weight: 700;
    color: #a78bfa;
}

.chess-board-grid, .checkers-board-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    width: 320px;
    height: 320px;
    border: 4px solid #334155;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.board-cell {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.board-cell.light { background: #cbd5e1; }
.board-cell.dark { background: #475569; }
.board-cell.selected { background: #38bdf8 !important; }
.board-cell.target-hint { background: #4ade80 !important; }

.checker-piece {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
}

.checker-white { background: #ffffff; border: 2px solid #cbd5e1; color: #f59e0b; }
.checker-black { background: #0f172a; border: 2px solid #334155; color: #f59e0b; }

.board-actions-row {
    width: 100%;
    display: flex;
    gap: 8px;
}

/* AVATAR IMAGES */
.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}
.avatar-img-lg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}
.opp-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}
.opp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* PLINKO BALLS SELECTOR */
.balls-select {
    display: flex;
    gap: 4px;
}
.balls-btn {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.balls-btn.active {
    background: #00f0ff;
    color: #020617;
    border-color: #00f0ff;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}
.total-bet-display {
    font-size: 11px;
    color: #00f0ff;
    font-weight: 700;
    margin-top: 4px;
}

/* UNO MULTIPLAYER HUB */
.uno-multiplayer-hub {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.uno-nav-tabs {
    display: flex;
    gap: 8px;
    background: rgba(15, 23, 42, 0.6);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.uno-tab-btn {
    flex: 1;
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.uno-tab-btn.active {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}
.uno-hud-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}
.uno-pot-badge {
    font-size: 12px;
    color: #94a3b8;
}
.uno-pot-badge b {
    color: #facc15;
}
.uno-turn-banner {
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #00f0ff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    margin: 8px 0;
}
.uno-tables-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    margin-top: 8px;
}
.uno-table-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}
.uno-table-item .uti-host {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
}
.uno-table-item .uti-bet {
    color: #facc15;
    font-weight: 800;
    font-size: 13px;
}

/* CASES PURCHASE & INVENTORY */
.case-meta-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.active-case-inventory {
    font-size: 12px;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.case-buy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    background: rgba(15, 23, 42, 0.6);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 8px 0;
}
.case-buy-qty {
    display: flex;
    gap: 6px;
}
.buy-qty-btn {
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.buy-qty-btn.active {
    background: #facc15;
    color: #020617;
    border-color: #facc15;
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.5);
}
.buy-case-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border: 1px solid #34d399;
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
}
.case-nonbuy-alert {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    margin: 8px 0;
}

/* CHESS & CHECKERS DOTS */
.legal-target-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.85);
    box-shadow: 0 0 8px #22c55e;
    pointer-events: none;
}
.board-cell.has-piece {
    cursor: pointer;
}
.board-cell.has-piece:hover {
    filter: brightness(1.2);
}

/* ==========================================================================
   INITIAL LOADING SCREEN (ANTI-FLASH)
   ========================================================================== */
.loading-screen {
    position: fixed;
    inset: 0;
    background: #070913;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.loading-spinner-box {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.campo-loading-logo {
    font-size: 32px;
    animation: pulseLogo 1.5s infinite ease-in-out;
}
.campo-loading-ring {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(0, 240, 255, 0.15);
    border-top-color: #00f0ff;
    border-right-color: #facc15;
    border-radius: 50%;
    animation: spinRing 0.8s infinite linear;
}
.loading-text {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
}
@keyframes spinRing { to { transform: rotate(360deg); } }
@keyframes pulseLogo {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4)); }
    50% { transform: scale(1.12); filter: drop-shadow(0 0 16px rgba(250, 204, 21, 0.8)); }
}

/* ==========================================================================
   CASES SUB-TABS (ВАШИ КЕЙСЫ & МАГАЗИН)
   ========================================================================== */
.cases-nav-tabs {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-bottom: 14px;
}
.cases-tab-btn {
    flex: 1;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-subtle);
    color: #94a3b8;
    padding: 10px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cases-tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(168, 85, 247, 0.2));
    border-color: #00f0ff;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

/* ==========================================================================
   MINES (САПЕР)
   ========================================================================== */
.mines-game-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(10, 15, 30, 0.95) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mines-hud {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.35);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
}
.mines-grid-5x5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
}
.mine-tile {
    aspect-ratio: 1;
    background: rgba(30, 41, 59, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}
.mine-tile:hover {
    transform: scale(1.05);
    border-color: #38bdf8;
}
.mine-tile.revealed-gem {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(6, 95, 70, 0.5));
    border-color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}
.mine-tile.revealed-boom {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.5), rgba(153, 27, 27, 0.7));
    border-color: #ef4444;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.8);
    animation: shakeBoom 0.4s ease;
}
.mines-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
}
.mines-count-selector {
    display: flex;
    gap: 6px;
}
.mine-qty-btn {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-subtle);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
}
.mine-qty-btn.active {
    background: #00f0ff;
    color: #000;
    border-color: #00f0ff;
}
@keyframes shakeBoom {
    0%, 100% { transform: translate(0, 0); }
    20%, 60% { transform: translate(-6px, 4px); }
    40%, 80% { transform: translate(6px, -4px); }
}

/* ==========================================================================
   THIMBLES (НАПЕРСТКИ)
   ========================================================================== */
.thimbles-arena-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(10, 15, 30, 0.95) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.thimbles-prompt {
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    color: #facc15;
}
.thimbles-stage {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 30px 10px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 16px;
}
.thimble-cup-wrap {
    position: relative;
    width: 80px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    user-select: none;
}
.thimble-cup {
    font-size: 56px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}
.thimble-cup-wrap.lifted .thimble-cup {
    transform: translateY(-40px);
}
.thimble-ball {
    position: absolute;
    bottom: 22px;
    font-size: 28px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}
.thimble-cup-wrap.lifted .thimble-ball {
    opacity: 1;
}
.cup-label {
    font-size: 12px;
    font-weight: 900;
    color: #94a3b8;
    margin-top: 6px;
}

/* ==========================================================================
   DICE (КОСТИ)
   ========================================================================== */
.dice-arena-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(10, 15, 30, 0.95) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.dice-versus-board {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 20px 10px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 16px;
}
.dice-player-side, .dice-dealer-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.dice-side-title {
    font-size: 13px;
    font-weight: 800;
    color: #94a3b8;
}
.dice-pair {
    display: flex;
    gap: 8px;
}
.dice-cube {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
    color: #0f172a;
    font-weight: 900;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dice-vs-badge {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 900;
    color: #f43f5e;
}
.dice-score-badge {
    font-size: 12px;
    font-weight: 800;
    color: #38bdf8;
}
.dice-result-banner {
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: #facc15;
}

/* ==========================================================================
   BLACKJACK (21)
   ========================================================================== */
.bj-arena-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(10, 15, 30, 0.95) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.bj-hand-title {
    font-size: 13px;
    font-weight: 800;
    color: #94a3b8;
    margin-bottom: 6px;
}
.bj-cards-row {
    display: flex;
    gap: 8px;
    min-height: 80px;
    align-items: center;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow-x: auto;
}
.bj-card {
    width: 52px;
    height: 74px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    font-weight: 900;
    font-size: 16px;
    color: #0f172a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}
.bj-card.red { color: #dc2626; }
.bj-card.hidden {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-color: #334155;
    color: #38bdf8;
    font-size: 24px;
    justify-content: center;
}
.bj-status-banner {
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: #00f0ff;
}
.bj-actions-row {
    display: flex;
    gap: 10px;
}

/* ==========================================================================
   CASINO ROULETTE (РУЛЕТКА КАЗИНО ДО x200) - BOT PARITY & SHADOWS
   ========================================================================== */
.casino-roulette-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: radial-gradient(circle at 50% 20%, rgba(224, 64, 251, 0.08), rgba(0, 0, 0, 0.6) 80%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.casino-hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.casino-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.casino-badge-live {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #00f0ff;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
}

.casino-title-main {
    font-size: 16px;
    font-weight: 900;
    color: #fff;
}

.casino-jackpot-badge {
    background: linear-gradient(135deg, #38004d, #001f3f);
    border: 1px solid #00f0ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    color: #00f0ff;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.casino-roulette-viewport {
    position: relative;
    width: 100%;
    height: 135px;
    background: #09040c;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8);
}

.casino-center-pointer {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.casino-pointer-arrow {
    font-size: 14px;
    color: #00f0ff;
    filter: drop-shadow(0 0 6px #00f0ff);
    line-height: 1;
}

.casino-pointer-arrow.bottom {
    transform: translateY(2px);
}

.casino-pointer-line {
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #00f0ff, rgba(255, 255, 255, 0.8) 50%, #00f0ff);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.9);
}

.casino-vignette {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 55px;
    z-index: 10;
    pointer-events: none;
}

.casino-vignette.left {
    left: 0;
    background: linear-gradient(90deg, #09040c 20%, transparent);
}

.casino-vignette.right {
    right: 0;
    background: linear-gradient(270deg, #09040c 20%, transparent);
}

.casino-roulette-track {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    will-change: transform;
    transition: transform 0.1s linear;
}

.casino-tile {
    width: 86px;
    height: 108px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: 'Inter', -apple-system, sans-serif;
    position: relative;
    user-select: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.casino-tile.active-win {
    transform: scale(1.1);
    z-index: 5;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8) !important;
}

.casino-tile-tier {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.casino-tile-mult {
    font-size: 19px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

/* 8 Theme Palettes matching bot casinoRoulette.js */
.theme-jackpot {
    background: linear-gradient(135deg, #001f3f 0%, #005082 100%);
    border: 2px solid #ffffff;
    color: #ffffff;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.7);
}
.theme-jackpot .casino-tile-mult { color: #00f0ff; text-shadow: 0 0 10px rgba(0, 240, 255, 0.8); }

.theme-legend {
    background: linear-gradient(135deg, #4a0e00 0%, #8a1d05 100%);
    border: 2px solid #ffd700;
    color: #fff5cc;
    box-shadow: 0 0 15px rgba(255, 51, 0, 0.6);
}
.theme-legend .casino-tile-mult { color: #ffd700; text-shadow: 0 0 8px rgba(255, 215, 0, 0.8); }

.theme-mythic {
    background: linear-gradient(135deg, #3d1a00 0%, #7c3500 100%);
    border: 2px solid #ffa500;
    color: #ffe0b2;
    box-shadow: 0 0 12px rgba(255, 136, 0, 0.5);
}
.theme-mythic .casino-tile-mult { color: #ffb74d; }

.theme-epic {
    background: linear-gradient(135deg, #38004d 0%, #7b1fa2 100%);
    border: 2px solid #e040fb;
    color: #f3e5f5;
    box-shadow: 0 0 12px rgba(213, 0, 249, 0.5);
}
.theme-epic .casino-tile-mult { color: #ea80fc; }

.theme-rare {
    background: linear-gradient(135deg, #002b4d 0%, #0277bd 100%);
    border: 2px solid #00e5ff;
    color: #e1f5fe;
    box-shadow: 0 0 10px rgba(0, 176, 255, 0.4);
}
.theme-rare .casino-tile-mult { color: #80d8ff; }

.theme-win {
    background: linear-gradient(135deg, #003d1a 0%, #2e7d32 100%);
    border: 2px solid #00e676;
    color: #e8f5e9;
    box-shadow: 0 0 10px rgba(0, 200, 83, 0.4);
}
.theme-win .casino-tile-mult { color: #b9f6ca; }

.theme-draw {
    background: linear-gradient(135deg, #3d3000 0%, #f57f17 100%);
    border: 2px solid #ffd600;
    color: #fffde7;
    box-shadow: 0 0 8px rgba(255, 171, 0, 0.3);
}
.theme-draw .casino-tile-mult { color: #ffff8d; }

.theme-loss {
    background: linear-gradient(135deg, #2b0007 0%, #4a000d 100%);
    border: 1.5px solid #ff1744;
    color: #ff8595;
    opacity: 0.85;
}
.theme-loss .casino-tile-mult { color: #ff5252; }

/* Result Card */
.casino-result-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 16px;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.crc-tier {
    font-size: 11px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.crc-mult {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
}

.crc-win {
    font-size: 15px;
    font-weight: 800;
}

.casino-spin-btn {
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.35);
}

/* ==========================================================================
   REALISTIC PLAYING CARDS (COURT ART & SKINS)
   ========================================================================== */
.realistic-card {
    position: relative;
    width: 60px;
    height: 86px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px;
    box-sizing: border-box;
    flex-shrink: 0;
    user-select: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
    cursor: pointer;
}

.realistic-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.4);
    z-index: 10;
}

.realistic-card.red-suit {
    color: #dc2626;
}

.realistic-card.black-suit {
    color: #0f172a;
}

.card-corner {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.card-corner.top-left {
    align-self: flex-start;
}

.card-corner.bottom-right {
    align-self: flex-end;
    transform: rotate(180deg);
}

.card-rank {
    font-size: 12px;
    font-weight: 900;
}

.card-suit {
    font-size: 11px;
}

.card-center-art {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.card-court-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.card-pip-glyph {
    font-size: 26px;
    line-height: 1;
}

/* Card Back */
.realistic-card.card-back {
    background: linear-gradient(135deg, #1e1b4b, #0f172a);
    border: 1.5px solid rgba(139, 92, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.card-back-pattern {
    width: 82%;
    height: 82%;
    object-fit: cover;
    border-radius: 5px;
    opacity: 0.9;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   DURAK MULTIPLAYER HUB & LOBBY STYLES
   ========================================================================== */
.durak-multiplayer-hub {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.durak-nav-tabs {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px;
    border-radius: 12px;
}

.durak-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-weight: 700;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.durak-tab-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #00f0ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.durak-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.durak-lobby-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 800;
    color: #e2e8f0;
}

.durak-tables-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
}

.durak-table-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
}

.durak-table-item .dti-host {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 13px;
    color: #fff;
}

.durak-table-item .dti-bet {
    font-weight: 900;
    font-size: 13px;
    color: #00ff88;
}

.durak-size-btns {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.durak-size-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 8px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.durak-size-btn.active {
    background: rgba(0, 240, 255, 0.15);
    border-color: #00f0ff;
    color: #00f0ff;
}

.durak-hud-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 8px 12px;
}

.durak-pot-badge {
    font-size: 12px;
    color: #cbd5e1;
}

.durak-pot-badge b {
    color: #00ff88;
}

.durak-hud-actions {
    display: flex;
    gap: 6px;
}

.durak-turn-banner {
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: #00f0ff;
    background: rgba(0, 240, 255, 0.08);
    padding: 6px 12px;
    border-radius: 8px;
}
