:root {
    --primary: #00ff88;
    --secondary: #6200ea;
    --dark-bg: #0a0a0c;
    --card-white: #f0f0f5;
    --text: #ffffff;
}

body {
    margin: 0;
    background-color: var(--dark-bg);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* --- RESPONSIVE SPLASH SCREEN --- */
#splash-screen {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0a0a0c 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    transition: opacity 0.5s ease, visibility 0.5s;
    padding: 20px;
    text-align: center;
}

.logo-container {
    width: 100%;
    margin-bottom: 40px;
    animation: float 3s ease-in-out infinite;
}

.logo-text {
    /* Responsive font sizing: min 35px, ideal 12% of screen width, max 80px */
    font-size: clamp(35px, 12vw, 80px); 
    font-weight: 900;
    font-style: italic;
    line-height: 1.1;
    background: linear-gradient(to bottom, var(--primary), #00a157);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.4));
    margin: 0;
    white-space: nowrap; /* Keeps name on one line */
}

.play-btn {
    padding: 18px 50px;
    font-size: 20px;
    font-weight: 900;
    color: #000;
    background: var(--primary);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    max-width: 280px;
    width: 80%;
}

.play-btn:hover {
    transform: scale(1.05);
    background: #fff;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.6);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- GAME HEADER --- */
.game-header {
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.stats { font-weight: bold; color: var(--primary); letter-spacing: 1px; }

#table {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
}

.hand-area {
    width: 100%;
    display: flex;
    justify-content: center;
    min-height: 130px;
    padding: 10px 0;
}

.center-play { display: flex; gap: 20px; align-items: center; }

/* --- CARD STYLING --- */
.card {
    width: 80px;
    height: 115px;
    background-color: var(--card-white);
    background-image: url('images/card2.png'); 
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center;
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
    transition: all 0.2s cubic-bezier(0.2, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid #ccc;
    position: relative;
    user-select: none;
    overflow: hidden; 
    text-shadow: 0px 0px 8px rgba(0,0,0,0.8);
    padding: 8px 0;
    box-sizing: border-box;
}

.card-back { 
    background-image: url('images/card6.png') !important; 
    background-color: #3d9663 !important; 
}

.player-card { margin-left: -35px; position: relative; z-index: 1; }
.player-card:first-child { margin-left: 0; }
.player-card:hover { 
    transform: translateY(-25px) scale(1.05); 
    z-index: 100 !important; 
    border-color: var(--primary);
}

.value { font-size: 28px; font-weight: 900; z-index: 2; line-height: 1; }
.suit { font-size: 34px; z-index: 2; }

/* --- MOBILE SPECIFIC OVERRIDES --- */
@media (max-width: 480px) {
    .logo-text { letter-spacing: -1px; }
    .card { width: 65px; height: 95px; }
    .player-card { margin-left: -30px; }
    .value { font-size: 22px; }
    .suit { font-size: 28px; }
}

/* --- MODALS & NOTIFICATIONS --- */
#notification {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #000;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 900;
    opacity: 0;
    transition: 0.3s;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 0 20px var(--primary);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.btn { padding: 12px 20px; background: var(--primary); border: none; margin: 5px; cursor: pointer; font-weight: bold; border-radius: 4px; }

.winner-content {
    background:#111; 
    padding:30px; 
    border-radius:20px; 
    text-align:center; 
    border: 3px solid var(--primary); 
    width: 100%;
    max-width: 400px;
}