* { box-sizing: border-box; font-family: 'Segoe UI', Tahoma, sans-serif; }
body {
    margin: 0;
    background: radial-gradient(circle at center, #14532d 0%, #052e16 100%);
    color: #fff;
    min-height: 100vh;
}
.hidden { display: none !important; }
.screen { display: flex; flex-direction: column; align-items: center; justify-content: space-between; min-height: 100vh; padding: 15px; }
#lobby { justify-content: center; }

.lobby-card {
    background: rgba(0, 0, 0, 0.45);
    padding: 35px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    width: 100%;
    max-width: 380px;
}
.lobby-card input {
    width: 100%; padding: 12px; margin: 8px 0; border-radius: 8px;
    border: none; font-size: 16px; text-align: center;
}
.btn-primary, .btn-start, .btn-close {
    padding: 12px 22px; border: none; border-radius: 8px; font-weight: bold;
    cursor: pointer; font-size: 15px; transition: transform 0.15s;
}
.btn-primary { width: 100%; background: #f59e0b; color: #111; margin-top: 10px; }
.btn-start { background: #22c55e; color: #052e16; }
.btn-close { background: #ef4444; color: #fff; margin-top: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
button:hover { transform: scale(1.04); }
.error { color: #fca5a5; margin-top: 10px; }

.top-bar {
    width: 100%; max-width: 960px; display: flex; justify-content: space-between;
    align-items: center; background: rgba(0,0,0,0.4); padding: 10px 18px; border-radius: 12px;
    flex-wrap: wrap; gap: 10px;
}
.turn-badge { background: #f59e0b; color: #111; padding: 6px 14px; border-radius: 20px; font-weight: bold; }

.players-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 10px 0; }
.player-box {
    background: rgba(0,0,0,0.35); padding: 10px 16px; border-radius: 10px;
    border: 2px solid transparent; text-align: center; min-width: 130px;
}
.player-box.active { border-color: #fbbf24; background: rgba(251,191,36,0.18); }

.table-area {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 220px; width: 100%; max-width: 750px;
    background: rgba(0,0,0,0.22); border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 24px; padding: 18px;
}
.table-info { font-size: 14px; color: #fde68a; margin-bottom: 10px; min-height: 20px; }
.table-cards { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.played-slot { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.played-slot small { background: rgba(0,0,0,0.5); padding: 2px 8px; border-radius: 6px; font-size: 12px; }

/* Cărți clasice */
.card {
    width: 96px; height: 142px; background: #fff; border-radius: 12px;
    padding: 8px; display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: 0 6px 15px rgba(0,0,0,0.5); user-select: none; position: relative;
    transition: transform 0.2s;
}
.card.red { color: #dc2626; }
.card.black { color: #111827; }
.card.point-card { border: 2px solid #f59e0b; }
.card.cut-card { border: 2px solid #2563eb; }

.my-hand { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; padding-bottom: 10px; }
.my-hand .card { cursor: pointer; }
.my-hand .card:hover { transform: translateY(-16px); }

.corner-top { font-size: 18px; font-weight: bold; line-height: 1; }
.center-suit { font-size: 40px; text-align: center; line-height: 1; }
.corner-bottom { font-size: 18px; font-weight: bold; line-height: 1; transform: rotate(180deg); }

.toast {
    position: fixed; top: 75px; background: #fbbf24; color: #111;
    padding: 10px 20px; border-radius: 20px; font-weight: bold; z-index: 99;
}