@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(to bottom, #062016, #000000);
    color: #EAEAEA;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden; /* 隐藏超出屏幕的动画元素 */
    position: relative; /* 为伪元素定位提供基准 */
}

body::before, body::after {
    content: '';
    position: absolute;
    z-index: -1; /* 将伪元素置于内容之下 */
    opacity: 0.1;
    filter: blur(50px); /* 强烈的模糊效果 */
    animation: float 20s infinite linear;
}

/* 模拟动态背景元素 - 筹码/花色 */
body::before {
    content: '♠'; /* 可以是♠ ♥ ♦ ♣ 或筹码图标 */
    font-size: 20vw;
    color: #FFD700; /* 金色 */
    top: 10%;
    left: 15%;
}

body::after {
    content: '♥';
    font-size: 15vw;
    color: #FFD700;
    bottom: 15%;
    right: 20%;
    animation-duration: 25s; /* 不同的动画速度增加随机感 */
}

/* 中心光效 */
#background-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0) 60%);
    z-index: -1;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.hidden {
    display: none !important;
}

button {
    font-family: 'Poppins', sans-serif;
    padding: 12px 25px;
    border-radius: 8px; /* 更圆润的圆角 */
    border: 1px solid rgba(255, 255, 255, 0.1); /* 细微的边框 */
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease; /* 平滑过渡所有属性 */
    background: linear-gradient(145deg, #3a506b, #2a3f54); /* 基础渐变背景 */
    color: #EAEAEA;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* 基础阴影 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* 文字阴影 */
}

button:hover {
    background: linear-gradient(145deg, #4a6581, #3a506b); /* Hover时渐变变化 */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 10px rgba(255, 215, 0, 0.2); /* 增强阴影和光晕 */
    transform: translateY(-2px); /* 轻微上浮效果 */
}

button:active {
    transform: translateY(0); /* 点击时恢复 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* 点击时阴影减弱 */
}

button:disabled {
    background: #555; /* 禁用状态背景 */
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
    transform: none;
    border-color: rgba(255, 255, 255, 0.05);
}

input[type="text"], input[type="number"] {
    font-family: 'Poppins', sans-serif;
    padding: 12px 0; /* Adjust padding for underline effect */
    border: none; /* Remove default border */
    border-bottom: 2px solid rgba(255, 255, 255, 0.3); /* Subtle underline */
    background: none; /* Remove background */
    color: #EAEAEA; /* Keep text color */
    font-size: 1em;
    box-sizing: border-box;
    transition: border-bottom-color 0.3s ease, box-shadow 0.3s ease; /* Transition for underline and shadow */
    text-align: center; /* Center placeholder text */
}

input[type="text"]::placeholder, input[type="number"]::placeholder {
    color: rgba(255, 255, 255, 0.5); /* Lighter placeholder */
}

input[type="text"]:focus, input[type="number"]:focus {
    border-bottom-color: #FFD700; /* Gold underline on focus */
    outline: none;
    box-shadow: 0 2px 5px rgba(255, 215, 0, 0.3); /* Subtle glow on focus */
}

/* Password Gate */
#password-gate {
    text-align: center;
    background-color: #2a3f54;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

#password-gate h1 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 3.5em;
    font-weight: normal;
    background: linear-gradient(to bottom, #FFECB3 0%, #FFD700 25%, #DAA520 50%, #FFD700 75%, #FFECB3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    margin-bottom: 0.5em;
}

#password-input {
    width: 100%;
    text-align: center;
    font-size: 1.2em;
    letter-spacing: 4px;
}

#password-submit-btn {
    width: 100%;
    background: linear-gradient(145deg, #FFD700, #DAA520);
    color: #1a1a1a;
    font-weight: 700;
    border-color: rgba(255,255,255,0.2);
}

#password-submit-btn:hover {
    background: linear-gradient(145deg, #FFE44D, #FFD700);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 15px rgba(255,215,0,0.4);
}

#password-error {
    color: #ff6b6b;
    font-size: 0.85em;
    min-height: 1.2em;
    margin: 0;
}

/* Entry Lobby */
#entry-lobby {
    text-align: center;
    background-color: #2a3f54;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

#entry-lobby h1 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 3.5em; /* 增大字号以突出艺术感 */
    font-weight: normal; /* 毛笔字体通常不需要额外加粗 */
    background: linear-gradient(to bottom, #FFECB3 0%, #FFD700 25%, #DAA520 50%, #FFD700 75%, #FFECB3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4), 0px 0px 15px rgba(255, 215, 0, 0.3); /* 增强阴影和光晕 */
    margin-bottom: 1.5em; /* 增加与下方元素的间距 */
}

#nickname-input {
    width: 100%;
    margin-bottom: 20px;
}

.room-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.join-room-section {
    display: flex;
    gap: 10px;
}

#room-id-input {
    flex-grow: 1;
}

/* Room Lobby */
#room-lobby {
    width: 100%;
    max-width: 800px;
    background-color: #2a3f54;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

#room-lobby h2 {
    margin-bottom: 20px;
    font-weight: 400;
}

#room-id-display {
    font-weight: 600;
    color: #ffd700;
    background-color: #1a2a3a;
    padding: 5px 10px;
    border-radius: 5px;
}

#player-seats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.player-seat {
    background-color: #1a2a3a;
    border: 2px dashed #3a506b;
    border-radius: 8px;
    padding: 20px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.player-seat.occupied {
    border-style: solid;
    border-color: #4caf50;
}

.player-seat .nickname {
    font-weight: 600;
    font-size: 1.1em;
}

.player-seat .host-tag {
    font-size: 0.8em;
    color: #ffd700;
    margin-top: 5px;
}

.room-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

#ready-btn {
    background: linear-gradient(145deg, #1a6b3a, #115228);
    border-color: rgba(50,200,100,0.2);
}
#ready-btn:hover {
    background: linear-gradient(145deg, #22894a, #1a6b3a);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 15px rgba(50,200,100,0.3);
}
#ready-btn.ready-active {
    background: linear-gradient(145deg, #2a4a2a, #1a3a1a);
    border-color: rgba(50,200,100,0.5);
    box-shadow: inset 0 0 0 1px rgba(50,200,100,0.3);
}

.ready-tag {
    font-size: 0.75em;
    margin-top: 4px;
    color: #2ecc71;
    font-weight: 600;
}
.ready-tag.not-ready {
    color: rgba(255,255,255,0.35);
    font-weight: 400;
}

#start-game-btn {
    background: linear-gradient(145deg, #d9534f, #c9302c); /* 红色渐变 */
    border-color: rgba(255, 255, 255, 0.2);
}

#start-game-btn:hover {
    background: linear-gradient(145deg, #e06a66, #d9534f); /* Hover时更亮 */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 0, 0, 0.3); /* 红色光晕 */
}

/* =====================
   Game Board
   ===================== */
#game-board {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 16px 110px;
    position: relative;
}

/* =====================
   Game Top Bar
   ===================== */
#game-top-bar {
    display: flex;
    justify-content: flex-end;
    padding: 0 4px;
}

#leave-game-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.5);
    padding: 6px 14px;
    font-size: 0.8em;
    border-radius: 8px;
    box-shadow: none;
}

#leave-game-btn:hover {
    background: rgba(200,50,50,0.25);
    border-color: rgba(200,50,50,0.4);
    color: #ff8a80;
    box-shadow: none;
    transform: none;
}

/* =====================
   Table Center
   ===================== */
#table-center {
    background: linear-gradient(160deg, rgba(10,40,25,0.95) 0%, rgba(5,25,15,0.98) 100%);
    border: 2px solid rgba(255,255,255,0.07);
    border-radius: 50px;
    padding: 24px 32px;
    text-align: center;
    box-shadow: 0 0 0 6px rgba(0,0,0,0.3), 0 8px 32px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
}

#game-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

#pot {
    font-size: 1.4em;
    font-weight: 700;
    color: #FFD700;
    background: rgba(0,0,0,0.35);
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,215,0,0.2);
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(255,215,0,0.3);
}

#round-name {
    font-size: 1em;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.06);
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    letter-spacing: 1px;
    text-transform: uppercase;
}

#community-cards {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 80px;
    align-items: center;
}

/* =====================
   Player Areas
   ===================== */
#player-areas-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.player-area {
    background: linear-gradient(145deg, rgba(22,36,52,0.92), rgba(14,24,36,0.95));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 14px 16px;
    min-height: 160px;
    transition: box-shadow 0.3s, border-color 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.player-area.current-turn {
    animation: breathing-glow 1.8s infinite ease-in-out;
    border-color: rgba(255,215,0,0.6);
}

@keyframes breathing-glow {
    0%   { box-shadow: 0 0 6px rgba(255,215,0,0.3), 0 4px 16px rgba(0,0,0,0.4); }
    50%  { box-shadow: 0 0 22px rgba(255,215,0,0.8), 0 0 40px rgba(255,215,0,0.3), 0 4px 16px rgba(0,0,0,0.4); }
    100% { box-shadow: 0 0 6px rgba(255,215,0,0.3), 0 4px 16px rgba(0,0,0,0.4); }
}

.player-area.folded {
    opacity: 0.42;
    filter: grayscale(0.4);
}

/* My player area */
.player-area.is-me {
    background: linear-gradient(145deg, rgba(30,55,40,0.95), rgba(18,38,28,0.98));
    border-color: rgba(80,200,120,0.35);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(80,200,120,0.15);
}

.player-area.is-me.current-turn {
    border-color: rgba(255,215,0,0.7);
}

.me-tag {
    display: inline-block;
    font-size: 0.65em;
    font-weight: 700;
    background: rgba(80,200,120,0.25);
    color: #5ec87a;
    border: 1px solid rgba(80,200,120,0.4);
    border-radius: 4px;
    padding: 1px 5px;
    vertical-align: middle;
    letter-spacing: 0;
    margin-left: 4px;
}

/* Player Info */
.player-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-info h3 {
    font-size: 0.95em;
    font-weight: 700;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
}

.player-info p {
    font-size: 0.78em;
    color: rgba(255,255,255,0.5);
    margin: 0;
    display: flex;
    justify-content: space-between;
}

.player-info p span {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.player-info p b {
    color: #ff6b6b;
    font-size: 0.9em;
}

.bet-stack-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    min-height: 28px;
    gap: 2px;
}

.bet-chip {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(145deg, #FFD700, #b8860b);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 2px 4px rgba(0,0,0,0.4), inset 0 1px 2px rgba(255,255,255,0.2);
}

/* Cards */
.cards-container {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.card {
    width: 48px;
    height: 68px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 7px;
    color: #111;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px 5px;
    font-size: 15px;
    font-weight: 700;
    position: relative;
    box-shadow: 0 3px 8px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: transform 0.15s ease;
}

.card:hover {
    transform: translateY(-3px);
}

.card.card-back {
    background: linear-gradient(135deg, #1a3a6a 0%, #0d2044 100%);
    border-color: #2a5298;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.03) 0px,
        rgba(255,255,255,0.03) 2px,
        transparent 2px,
        transparent 10px
    );
    box-shadow: 0 3px 8px rgba(0,0,0,0.5);
}

.card .rank { line-height: 1; font-size: 1em; }
.card .suit { font-size: 18px; text-align: center; line-height: 1; }
.card.suit-red { color: #cc2200; }
.card.suit-black { color: #111; }

/* Dealer Button */
.dealer-button {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    background: linear-gradient(145deg, #FFD700, #DAA520);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75em;
    font-weight: 800;
    color: #333;
    border: 2px solid rgba(255,255,255,0.4);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 10px rgba(255,215,0,0.4);
    z-index: 10;
    letter-spacing: 0;
}

/* =====================
   Game Log
   ===================== */
.game-log-container {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 10px 14px;
    height: 110px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.8em;
    color: rgba(255,255,255,0.55);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.game-log-container::-webkit-scrollbar { width: 4px; }
.game-log-container::-webkit-scrollbar-track { background: transparent; }
.game-log-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.log-entry {
    padding: 3px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    line-height: 1.5;
}

.log-entry:last-child { border-bottom: none; }

.log-blind  { color: rgba(180,180,255,0.7); }
.log-fold   { color: rgba(255,100,100,0.7); }
.log-call   { color: rgba(100,200,120,0.7); }
.log-raise  { color: rgba(255,215,0,0.8); }
.log-win    { color: #2ecc71; font-weight: 600; }
.log-community { color: rgba(150,220,255,0.8); }
.log-system { color: rgba(255,255,255,0.35); font-style: italic; }

/* =====================
   Central Action Bar
   ===================== */
#central-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(8,14,22,0.98) 0%, rgba(10,18,28,0.95) 100%);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 14px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    z-index: 200;
    backdrop-filter: blur(10px);
}

#central-action-bar.hidden {
    display: none !important;
}

#action-buttons {
    display: flex;
    gap: 12px;
}

#action-fold {
    background: linear-gradient(145deg, #7f2d2d, #5c1f1f);
    border-color: rgba(255,100,100,0.2);
    min-width: 90px;
}
#action-fold:hover {
    background: linear-gradient(145deg, #a03535, #7f2d2d);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 15px rgba(200,50,50,0.3);
}

#action-call {
    background: linear-gradient(145deg, #1a6b3a, #115228);
    border-color: rgba(50,200,100,0.2);
    min-width: 110px;
}
#action-call:hover {
    background: linear-gradient(145deg, #22894a, #1a6b3a);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 15px rgba(50,200,100,0.3);
}

#action-raise {
    background: linear-gradient(145deg, #7a5c00, #5a4400);
    border-color: rgba(255,215,0,0.2);
    min-width: 90px;
}
#action-raise:hover {
    background: linear-gradient(145deg, #a07a00, #7a5c00);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 15px rgba(255,215,0,0.3);
}

#central-action-bar button {
    padding: 11px 20px;
    font-size: 0.95em;
    font-weight: 600;
    letter-spacing: 0.3px;
}

#raise-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.05);
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
}

#raise-slider {
    width: 160px;
    accent-color: #FFD700;
    cursor: pointer;
}

#raise-amount-display {
    font-size: 1.1em;
    font-weight: 700;
    min-width: 48px;
    text-align: center;
    color: #FFD700;
    font-variant-numeric: tabular-nums;
}

#confirm-raise-btn {
    background: linear-gradient(145deg, #FFD700, #DAA520);
    color: #1a1a1a;
    border-color: rgba(255,255,255,0.3);
    font-weight: 700;
}
#confirm-raise-btn:hover {
    background: linear-gradient(145deg, #FFE44D, #FFD700);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 15px rgba(255,215,0,0.4);
}

/* =====================
   Game Over Modal
   ===================== */
.modal-overlay {
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.88);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(160deg, #1e2f42 0%, #111d2a 100%);
    padding: 40px;
    border-radius: 18px;
    text-align: center;
    color: #EAEAEA;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,215,0,0.2), 0 0 40px rgba(255,215,0,0.08);
    max-width: 540px;
    width: 90%;
    transform: translateY(-24px);
    opacity: 0;
    transition: opacity 0.35s ease-in-out, transform 0.35s ease-in-out;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-title {
    font-size: 2.2em;
    margin-bottom: 24px;
    color: #FFD700;
    text-shadow: 0 2px 10px rgba(255,215,0,0.4);
    font-weight: 700;
    letter-spacing: 1px;
}

.winner-list {
    margin-bottom: 24px;
}

.winner-card {
    background: linear-gradient(145deg, rgba(52,73,94,0.8), rgba(30,47,66,0.8));
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,215,0,0.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.winner-card h3 {
    margin: 0 0 8px;
    font-size: 1.4em;
    color: #fff;
}

/* Loser card — lower visual priority */
.loser-card {
    background: linear-gradient(145deg, rgba(30,35,45,0.7), rgba(20,25,35,0.7));
    border-color: rgba(255,255,255,0.06);
    opacity: 0.8;
}

.loser-card h3 {
    font-size: 1.1em;
    color: rgba(255,255,255,0.7);
}

.winner-card .win-amount {
    font-size: 1.25em;
    color: #2ecc71;
    font-weight: 700;
    margin-bottom: 8px;
}

.winner-card .hand-description {
    font-size: 1em;
    color: #bdc3c7;
    margin-bottom: 14px;
}

.winner-hand {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.winner-hand .card {
    transform: scale(0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.modal-actions button {
    padding: 12px 28px;
    font-size: 1.05em;
    min-width: 120px;
    font-weight: 600;
}

.modal-actions button.primary {
    background: linear-gradient(145deg, #FFD700, #DAA520);
    color: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.2);
}
.modal-actions button.primary:hover {
    background: linear-gradient(145deg, #FFE44D, #FFD700);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 15px rgba(255,215,0,0.5);
    transform: translateY(-2px);
}

.modal-actions button.secondary {
    background: linear-gradient(145deg, #5bc0de, #31b0d5);
    color: #EAEAEA;
    border: 1px solid rgba(255,255,255,0.2);
}
.modal-actions button.secondary:hover {
    background: linear-gradient(145deg, #6edaf0, #5bc0de);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 15px rgba(91,192,222,0.3);
    transform: translateY(-2px);
}

/* =====================
   Responsive - Mobile
   ===================== */
@media (max-width: 700px) {
    #player-areas-container {
        grid-template-columns: repeat(2, 1fr);
    }
    #game-board {
        padding: 12px 10px 120px;
    }
    #table-center {
        border-radius: 30px;
        padding: 18px 20px;
    }
    .card {
        width: 38px;
        height: 56px;
        font-size: 13px;
    }
    .card .suit { font-size: 15px; }
    #action-buttons { gap: 8px; }
    #central-action-bar button { padding: 10px 14px; font-size: 0.88em; min-width: 76px; }

    #entry-lobby {
        padding: 30px 20px;
        margin: 16px;
    }

    .join-room-section {
        display: flex;
        flex-direction: row;
        gap: 8px;
        align-items: center;
    }

    .join-room-section #room-id-input {
        min-width: 0;
        flex: 1;
    }

    .join-room-section #join-room-btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 12px 14px;
        font-size: 0.9em;
    }

    #create-room-btn {
        width: 100%;
    }
}

@media (max-width: 400px) {
    #player-areas-container {
        grid-template-columns: 1fr 1fr;
    }
}
