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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Login Screen */
.container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 400px;
}

h1 {
    color: #667eea;
    font-size: 48px;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

input[type="text"] {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #667eea;
    color: white;
}

.btn-danger {
    background: #e74c3c;
}

.btn-large {
    padding: 16px 48px;
    font-size: 18px;
}

.hidden {
    display: none !important;
}

.checkbox-group {
    margin: 15px 0;
    text-align: left;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Game Screen */
.game-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #1a1a2e;
    color: white;
}

.game-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.game-area {
    flex: 0 0 75%;
    display: flex;
    flex-direction: column;
}

.chat-area {
    flex: 0 0 25%;
    display: flex;
    flex-direction: column;
    border-left: 2px solid #667eea;
    min-height: 0;
    overflow: hidden;
}

.game-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid #667eea;
}

.room-info {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
}

.scores {
    display: flex;
    gap: 40px;
    justify-self: center;
}

.game-header > button {
    justify-self: end;
}

.team-score {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-label {
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
}

.score {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
}

/* Game Table */
.game-table {
    flex: 1;
    position: relative;
    background: #0d5c2d;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.05) 2px, rgba(0,0,0,.05) 4px);
    margin: 20px;
    margin-right: 0;
    border-radius: 20px;
    box-shadow: 
        inset 0 0 100px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.5);
    border: 8px solid #8B4513;
}

.player-area {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-label {
    font-size: 18px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    display: none;
}

.player-declaration {
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid #667eea;
    font-size: 14px;
    font-weight: bold;
    color: #ffd700;
    min-width: 60px;
    text-align: center;
    display: none;
}

.player-declaration.visible {
    display: block;
}

.player-declaration-panel {
    position: absolute;
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 10px;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

/* Hide declaration panels for other players */
.player-top .player-declaration-panel,
.player-left .player-declaration-panel,
.player-right .player-declaration-panel {
    display: none;
}

/* Only show declaration panel for bottom player (current user) */
.player-bottom .player-declaration-panel {
    left: -100px;
}

.decl-value {
    font-size: 18px;
    font-weight: bold;
    color: #ffd700;
    min-height: 24px;
}

.decl-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.decl-input {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #667eea;
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    text-align: center;
}

.decl-submit-btn {
    padding: 5px 10px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.decl-submit-btn:hover {
    background: #764ba2;
}

.decl-show-btn {
    padding: 5px 15px;
    background: #ffd700;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.decl-show-btn:hover {
    background: #ffed4e;
}

.decl-show-btn.hidden {
    display: none;
}

.player-top {
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
}

.player-left {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: row;
}

.player-right {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: row-reverse;
}

.player-bottom {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column-reverse;
}

.player-info {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 25px;
    border-radius: 12px;
    border: 2px solid #667eea;
    text-align: center;
    min-width: 150px;
    position: relative;
}

.player-video {
    width: 120px;
    height: 90px;
    border-radius: 8px;
    border: 2px solid #667eea;
    object-fit: cover;
    margin-bottom: 10px;
}

.player-video.hidden {
    display: none;
}

.player-bottom .player-info {
    margin-top: 50px;
}

.player-info.active {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.player-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.player-cards-count {
    font-size: 12px;
    color: #aaa;
}

.table-center {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.current-trick {
    position: relative;
    width: 300px;
    height: 300px;
    margin-bottom: 20px;
}

.current-trick .card-played {
    position: absolute;
    transition: all 0.6s ease-in-out;
}

/* Position cards based on which player played them */
.current-trick .card-position-0 {
    /* Bottom - current player */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.current-trick .card-position-1 {
    /* Left player */
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.current-trick .card-position-2 {
    /* Top player */
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.current-trick .card-position-3 {
    /* Right player */
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Animation classes for cards moving to winner */
.current-trick .card-played.collect-to-0 {
    bottom: 0 !important;
    left: 50% !important;
    top: auto !important;
    right: auto !important;
    transform: translateX(-50%) scale(0.8);
    opacity: 0.7;
}

.current-trick .card-played.collect-to-1 {
    left: 0 !important;
    top: 50% !important;
    bottom: auto !important;
    right: auto !important;
    transform: translateY(-50%) scale(0.8);
    opacity: 0.7;
}

.current-trick .card-played.collect-to-2 {
    top: 0 !important;
    left: 50% !important;
    bottom: auto !important;
    right: auto !important;
    transform: translateX(-50%) scale(0.8);
    opacity: 0.7;
}

.current-trick .card-played.collect-to-3 {
    right: 0 !important;
    top: 50% !important;
    bottom: auto !important;
    left: auto !important;
    transform: translateY(-50%) scale(0.8);
    opacity: 0.7;
}

.game-status {
    font-size: 18px;
    color: #ffd700;
    margin-bottom: 10px;
}

.trump-info {
    position: absolute;
    right: 58px;
    top: calc(60% + 100px);
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 15px 25px;
    border-radius: 12px;
    border: 3px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    z-index: 10;
    text-align: center;
    min-width: 150px;
}

.trump-info .trump-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.trump-info .trump-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.trump-info .trump-bid-number {
    font-size: 28px;
    font-weight: bold;
    color: #667eea;
}

.trump-info .trump-suit-symbol {
    font-size: 28px;
}

.trump-info .trump-team-names {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    margin-top: 5px;
}

.bidding-info {
    position: absolute;
    top: 50%;
    right: 120px;
    transform: translateY(-50%);
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border: 3px solid #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 50;
    text-align: center;
}

.bidding-info .bid-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bidding-info .bid-number {
    font-size: 36px;
    font-weight: bold;
    color: #333;
}

.bidding-info .bid-suit {
    font-size: 36px;
}

.bidding-info .bid-team {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

/* Colored suit symbols */
.suit-hearts,
.suit-diamonds {
    color: #e74c3c !important;
}

.suit-clubs,
.suit-spades {
    color: #000 !important;
}

/* Comic-style Speech Bubble Popup */
.bid-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f8f9fa;
    color: #333;
    padding: 20px 30px;
    border-radius: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border: 4px solid #000;
    min-width: 200px;
}

.bid-notification.hidden {
    display: none;
}

.bid-notification .bid-player {
    font-size: 14px;
    color: #667eea;
    margin-bottom: 8px;
    font-weight: 600;
}

.bid-notification .bid-amount {
    font-size: 48px;
    color: #000;
    margin: 8px 0;
    line-height: 1;
    text-shadow: 2px 2px 0px rgba(255, 215, 0, 0.3);
}

.bid-notification .bid-team {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

/* Speech bubble tail pointing to each player */
.bid-notification::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

/* Position 0 - You (bottom) - tail points down */
.bid-notification.position-0::after {
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 30px 20px 0 20px;
    border-color: #000 transparent transparent transparent;
}

.bid-notification.position-0::before {
    content: '';
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 24px 16px 0 16px;
    border-color: white transparent transparent transparent;
}

/* Position 1 - Top player - tail points up */
.bid-notification.position-1::after {
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 20px 30px 20px;
    border-color: transparent transparent #000 transparent;
}

.bid-notification.position-1::before {
    content: '';
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 16px 24px 16px;
    border-color: transparent transparent white transparent;
}

/* Position 2 - Left player - tail points left */
.bid-notification.position-2::after {
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 20px 30px 20px 0;
    border-color: transparent #000 transparent transparent;
}

.bid-notification.position-2::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 16px 24px 16px 0;
    border-color: transparent white transparent transparent;
}

/* Position 3 - Right player - tail points right */
.bid-notification.position-3::after {
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 20px 0 20px 30px;
    border-color: transparent transparent transparent #000;
}

.bid-notification.position-3::before {
    content: '';
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 16px 0 16px 24px;
    border-color: transparent transparent transparent white;
}

/* Cards */
.card {
    width: 85px;
    height: 125px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f8f8 100%);
    border-radius: 10px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: all 0.3s ease;
    position: relative;
}

.card:active {
    cursor: grabbing;
}

.card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.3),
        0 12px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    z-index: 100;
}

.card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.card.disabled:hover {
    transform: none;
}

.card-rank {
    font-size: 28px;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.card-suit {
    font-size: 40px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.card.hearts .card-rank,
.card.hearts .card-suit,
.card.diamonds .card-rank,
.card.diamonds .card-suit {
    color: #dc143c;
}

.card.clubs .card-rank,
.card.clubs .card-suit,
.card.spades .card-rank,
.card.spades .card-suit {
    color: #000000;
}

.card-back {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Player Hand */
.player-hand {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    min-height: 180px;
    border-top: 3px solid #8B4513;
    position: relative;
}

.player-hand .card {
    margin: 0 -15px;
    transition: all 0.3s ease;
}

.player-hand .card:hover {
    margin: 0 5px;
}

/* Action Panel */
.action-panel {
    position: fixed;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 20px 30px;
    border-radius: 15px;
    border: 2px solid #667eea;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 100;
    min-width: 400px;
    max-width: 500px;
}

/* Bidding panel positioned bottom-left, left of player cards */
#biddingPanel {
    left: 20px;
    bottom: 20px;
    top: auto;
    transform: none;
    min-width: 180px;
    max-width: 220px;
    padding: 12px;
}

#biddingPanel h3 {
    font-size: 15px;
    margin-bottom: 8px;
}

.action-panel h3 {
    margin-bottom: 20px;
    color: #ffd700;
}

.bid-controls {
    display: flex;
    gap: 5px;
    flex-direction: column;
}

.bid-controls select {
    padding: 5px 8px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    width: 100%;
}

/* Pass and Close/Open buttons side by side and smaller */
#biddingPanel #passBtn {
    padding: 8px 12px;
    font-size: 13px;
    margin-top: 5px;
}

#biddingPanel #closeGameBtn,
#biddingPanel #openGameBtn {
    padding: 6px 10px;
    font-size: 12px;
    margin-top: 5px;
}

.bid-controls .button-row {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.suit-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

.suit-btn {
    width: 100%;
    height: 40px;
    font-size: 24px;
    border-radius: 6px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s;
}

.suit-btn:hover {
    transform: scale(1.1);
    border-color: #667eea;
}

.suit-btn.selected {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    transform: scale(1.05);
}

.suit-btn-clubs {
    color: #2c3e50;
}

.suit-btn-hearts {
    color: #e74c3c;
}

.suit-btn-spades {
    color: #2c3e50;
}

.suit-btn-diamonds {
    color: #e74c3c;
}

.declaration-controls {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.declaration-controls select {
    padding: 10px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
}

#declarationsList {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.declaration-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Chat Panel */
.chat-panel {
    flex: 1;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    margin: 20px;
    margin-left: 0;
    border-radius: 12px;
    border: 2px solid #667eea;
    min-height: 0;
    max-height: 100%;
}

.chat-header {
    padding: 10px 15px;
    background: #667eea;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    max-height: 100%;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.chat-message {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
}

.chat-message .sender {
    font-weight: bold;
    color: #667eea;
    margin-right: 5px;
}

.chat-input {
    display: flex;
    gap: 5px;
    padding: 10px;
    border-top: 1px solid #667eea;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.9);
}

.chat-input input {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.chat-input input::placeholder {
    color: #aaa;
}

/* Suit Icons */
.suit-icon {
    font-size: 24px;
}

/* Removed ::before pseudo-elements to prevent double symbols */

/* Animations */
@keyframes cardPlay {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.card-played {
    animation: cardPlay 0.3s ease;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal:not(.hidden) {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 100%);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #ffd700;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.throw-in-card-container {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    min-height: 120px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.throw-in-card {
    width: 70px;
    height: 100px;
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: move;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
}

.throw-in-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.throw-in-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.throw-in-card .rank {
    font-size: 24px;
    font-weight: bold;
}

.throw-in-card .suit {
    font-size: 32px;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.declaration-cards-display {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.declaration-group {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid #667eea;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.declaration-group h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 16px;
}

.declaration-group .cards {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

.declaration-group .mini-card {
    width: 40px;
    height: 60px;
    background: white;
    border: 2px solid #333;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.declaration-group .mini-card.hearts,
.declaration-group .mini-card.diamonds {
    color: #e74c3c;
}

.declaration-group .mini-card.clubs,
.declaration-group .mini-card.spades {
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        min-width: 90%;
        padding: 20px;
    }
    
    .game-main {
        flex-direction: column;
    }
    
    .game-area {
        flex: 1;
    }
    
    .chat-area {
        flex: 0 0 200px;
        border-left: none;
        border-top: 2px solid #667eea;
    }
    
    .game-table {
        margin: 10px;
    }
    
    .card {
        width: 60px;
        height: 90px;
    }
    
    .chat-panel {
        margin: 10px;
    }
}
