/* President (Asshole) – LuckyLobby game styles */

/* ---- Layout / Lobby ---- */
.president-game-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem;
}

.president-lobby {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
}

.lobby-header { text-align: center; }

.lobby-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}
.lobby-logo .logo-icon { font-size: 3rem; }
.lobby-logo h1 {
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--accent);
    margin: 0;
}
.lobby-logo .logo-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.lobby-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    max-width: 420px;
}

.rules-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.rules-card h3 {
    font-family: var(--font-head);
    font-size: 0.85rem;
    color: var(--accent);
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.rules-card ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
}
.rules-card li { margin-bottom: 0.25rem; }
.rules-card strong { color: var(--accent); }

/* ---- Avatar picker ---- */
.avatar-picker {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
}
.avatar-picker-label {
    font-family: var(--font-head);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.6rem;
}
.avatar-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
}
.avatar-option {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-dark);
    font-size: 1.35rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.avatar-option:hover {
    border-color: var(--accent);
    transform: scale(1.15);
}
.avatar-option.selected {
    border-color: var(--accent);
    background: rgba(212, 168, 83, 0.15);
    box-shadow: 0 0 10px var(--accent-glow);
    transform: scale(1.15);
}

/* ---- Jokers toggle ---- */
.option-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    text-align: center;
}
.option-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
}
.option-toggle-label input[type="checkbox"] {
    display: none;
}
.toggle-switch {
    width: 44px;
    height: 24px;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s;
    flex-shrink: 0;
}
.toggle-switch::after {
    content: '';
    width: 18px;
    height: 18px;
    background: var(--text-muted);
    border-radius: 50%;
    position: absolute;
    top: 1px;
    left: 1px;
    transition: all 0.3s;
}
.option-toggle-label input:checked ~ .toggle-switch {
    background: rgba(212, 168, 83, 0.2);
    border-color: var(--accent);
}
.option-toggle-label input:checked ~ .toggle-switch::after {
    background: var(--accent);
    transform: translateX(20px);
}
.toggle-text {
    font-family: var(--font-head);
    font-size: 0.8rem;
    color: var(--text);
    letter-spacing: 0.05em;
}
.toggle-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* Timer & Bot selectors */
.timer-selector,
.bot-selector {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
}
.timer-label,
.bot-selector-label {
    font-family: var(--font-head);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}
.timer-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}
.timer-btn {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: all 0.2s;
}
.timer-btn.active,
.timer-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}
.bot-selector-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.bot-adj-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.bot-adj-btn:hover { border-color: var(--accent); color: var(--accent); }
.bot-count-display {
    font-family: var(--font-head);
    font-size: 1.75rem;
    color: var(--accent);
    min-width: 2rem;
    text-align: center;
}
.bot-selector-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.lobby-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 1.5rem;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}
.lobby-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
}
.lobby-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.lobby-btn small {
    font-family: var(--font-body);
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Room lobby */
.room-code-card {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}
.room-code-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.room-code-value {
    font-family: var(--font-head);
    font-size: 2.5rem;
    color: var(--accent);
    letter-spacing: 0.3em;
    margin: 0.25rem 0;
}
.room-code-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.room-players-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}
.room-players-label {
    font-family: var(--font-head);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}
.room-player-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.room-player-list li {
    padding: 0.4rem 0.75rem;
    background: var(--bg-dark);
    border-radius: 6px;
    font-size: 0.9rem;
}
.room-player-list li.is-you {
    border-left: 3px solid var(--accent);
    color: var(--accent);
}

/* ================================================================
   ROUND TABLE
   ================================================================ */
.president-table-screen {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px);
}

.table-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0.5rem;
}
.hud-left, .hud-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.hud-logo {
    font-family: var(--font-head);
    font-size: 0.85rem;
    color: var(--accent);
}
.hud-round {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}
.hud-room-code {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.hud-timer {
    font-family: var(--font-head);
    font-size: 1rem;
    color: var(--success);
    background: var(--bg-card);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    min-width: 3rem;
    text-align: center;
}
.hud-timer.timer-urgent {
    color: var(--danger);
    animation: pulse 0.5s ease-in-out infinite alternate;
}
@keyframes pulse { to { opacity: 0.5; } }

.hud-player-name {
    font-size: 0.85rem;
    color: var(--text);
}

/* Game message */
.game-message {
    text-align: center;
    padding: 0.6rem;
    font-size: 0.9rem;
    color: var(--accent);
    background: rgba(212, 168, 83, 0.08);
    border-radius: 8px;
    margin: 0.5rem 0;
}
.game-message.error {
    color: var(--danger);
    background: rgba(248, 113, 113, 0.08);
}

/* ---- Round table layout ---- */
.round-table-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0;
}

.round-table {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1.4 / 1;
    position: relative;
}

.table-felt {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, #1a5c35 0%, #0e3d22 60%, #092a18 100%);
    border-radius: 50%;
    border: 6px solid #3a2a1a;
    box-shadow:
        inset 0 0 40px rgba(0,0,0,0.4),
        0 4px 20px rgba(0,0,0,0.5),
        0 0 0 3px #2a1a0a,
        0 0 0 8px #1a1008;
    overflow: visible;
}

/* ---- Seats positioned on the table ---- */
.table-seats {
    position: absolute;
    inset: 0;
}

.table-seat {
    position: absolute;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    transition: all 0.3s;
    min-width: 70px;
}
.table-seat.active-turn .seat-avatar {
    box-shadow: 0 0 16px var(--accent-glow), 0 0 30px rgba(212, 168, 83, 0.2);
    border-color: var(--accent);
}
.table-seat.finished { opacity: 0.45; }
.table-seat.passed .seat-avatar { border-style: dashed; }

.seat-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 0.2rem;
    transition: all 0.3s;
}

.seat-avatar-lg {
    width: 58px;
    height: 58px;
    font-size: 1.8rem;
}

.seat-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seat-cards {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-family: var(--font-head);
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.seat-status {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
.seat-out {
    color: var(--success);
}

.seat-title {
    font-size: 0.85rem;
    margin-top: 0.1rem;
}

/* "You" seat at bottom of table */
.my-seat {
    text-align: center;
    margin-top: -20px;
    position: relative;
    z-index: 15;
}
.my-seat.active-turn .seat-avatar {
    box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(212, 168, 83, 0.25);
    border-color: var(--accent);
    animation: my-turn-glow 1.5s ease-in-out infinite alternate;
}
@keyframes my-turn-glow {
    from { box-shadow: 0 0 16px var(--accent-glow); }
    to   { box-shadow: 0 0 28px var(--accent-glow), 0 0 50px rgba(212, 168, 83, 0.2); }
}

.my-seat .seat-name {
    font-size: 0.8rem;
    color: var(--accent);
}
.my-seat .seat-cards {
    font-size: 0.7rem;
}

/* Pile in center of table */
.pile-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    min-width: 120px;
}
.pile-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.3rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.pile-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-height: 90px;
}
.pile-cards.pile-empty {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pile-layer {
    display: flex;
    gap: 0.2rem;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}
.pile-layer-top {
    position: relative;
    left: auto;
    transform: none;
    pointer-events: auto;
}

/* ---- Cards ---- */
.card {
    width: 56px;
    height: 80px;
    background: #fffef8;
    border: 2px solid #ddd;
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3px 5px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    position: relative;
    user-select: none;
    transition: all 0.15s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.card.interactive {
    cursor: pointer;
}
.card.interactive:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.card.selected {
    transform: translateY(-14px);
    border-color: var(--accent);
    box-shadow: 0 0 18px var(--accent-glow), 0 8px 20px rgba(0,0,0,0.35);
}
.card.suit-h, .card.suit-d { color: #e74c3c; }
.card.suit-c, .card.suit-s { color: #2d2d2d; }

.card-rank-top {
    font-size: 0.75rem;
    line-height: 1;
}
.card-suit-center {
    font-size: 1.2rem;
    text-align: center;
    line-height: 1;
}
.card-rank-bottom {
    font-size: 0.75rem;
    line-height: 1;
    text-align: right;
    transform: rotate(180deg);
}
.card-back {
    background: linear-gradient(135deg, #1a3a5c 0%, #0d1f33 100%);
    border-color: #2a5a8c;
}
/* ---- Joker & Wild card styles ---- */
.card-joker {
    background: linear-gradient(135deg, #fffbe6 0%, #ffe0b2 40%, #fff9c4 60%, #ffe0b2 100%) !important;
    border: 2px solid #d4a853 !important;
    animation: jokerShimmer 3s ease-in-out infinite;
}
.card-joker .card-suit-center { font-size: 1.8rem; }
.card-joker .card-rank-top,
.card-joker .card-rank-bottom {
    font-weight: 900;
    font-style: italic;
}
@keyframes jokerShimmer {
    0%, 100% { box-shadow: 0 0 6px rgba(212,168,83,0.3); }
    50%      { box-shadow: 0 0 16px rgba(212,168,83,0.6), 0 0 30px rgba(212,168,83,0.2); }
}

.card-wild {
    border: 2px solid #d4a853 !important;
    position: relative;
}
.card-wild-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--accent);
    color: var(--bg-dark);
    font-size: 0.45rem;
    font-weight: 900;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.card-back-design {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 1.5rem;
}

/* Player hand */
.player-hand-area {
    padding: 0.25rem 0;
}
.hand-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    text-align: center;
}
.player-hand {
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    flex-wrap: wrap;
    padding: 0.25rem;
    min-height: 90px;
}

/* Action bar */
.action-bar {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.5rem 0 0.75rem;
}
.action-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-head);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid;
}
.play-btn {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}
.play-btn:hover:not(:disabled) {
    background: #e8c97a;
}
.play-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.pass-btn {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border);
}
.pass-btn:hover:not(:disabled) {
    border-color: var(--danger);
    color: var(--danger);
}
.pass-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Round over overlay */
.round-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 18, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}
.round-overlay-content {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.round-overlay-content h2 {
    font-family: var(--font-head);
    color: var(--accent);
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}
.round-rankings {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.ranking-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-dark);
    border-radius: 8px;
    font-size: 0.9rem;
}
.ranking-row.is-you {
    border: 1px solid var(--accent);
    background: rgba(212, 168, 83, 0.08);
}
.ranking-pos {
    font-family: var(--font-head);
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 1.5rem;
}
.ranking-avatar {
    font-size: 1.2rem;
}
.ranking-emoji {
    font-size: 1.1rem;
}
.ranking-name {
    flex: 1;
    text-align: left;
}
.ranking-title {
    font-size: 0.75rem;
    color: var(--accent);
    font-family: var(--font-head);
}

/* ---- Play Log Panel ---- */
.play-log-panel {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 280px;
    max-height: 50vh;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    box-shadow: -2px -2px 12px rgba(0,0,0,0.4);
}
.play-log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    user-select: none;
}
.play-log-title {
    font-family: var(--font-head);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.05em;
}
.play-log-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0 0.25rem;
}
.play-log-body {
    overflow-y: auto;
    max-height: 40vh;
    transition: max-height 0.3s ease;
}
.play-log-body.collapsed {
    max-height: 0;
    overflow: hidden;
}
.play-log-entries {
    padding: 0.4rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.log-empty {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: center;
    padding: 1rem 0;
}
.log-entry {
    font-size: 0.72rem;
    line-height: 1.5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: var(--text);
}
.log-entry.log-play {
    background: rgba(255,255,255,0.03);
}
.log-entry.log-pass {
    color: var(--text-muted);
    font-style: italic;
}
.log-entry.log-clear {
    text-align: center;
    color: var(--accent);
    font-family: var(--font-head);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    padding: 0.25rem 0;
    border-top: 1px solid rgba(212,168,83,0.15);
    border-bottom: 1px solid rgba(212,168,83,0.15);
    margin: 0.15rem 0;
}
.log-entry.log-out {
    background: rgba(74,222,128,0.08);
}
.log-name {
    font-weight: 600;
    color: var(--text);
}
.log-action {
    color: var(--text-muted);
}
.log-card {
    font-weight: 700;
    margin: 0 0.1rem;
}
.log-clear {
    color: var(--accent);
}
.log-out {
    color: #4ade80;
}

@media (max-width: 600px) {
    .play-log-panel {
        width: 100%;
        max-height: 35vh;
        border-radius: var(--radius) var(--radius) 0 0;
    }
}

/* ---- Celebration animations ---- */
.round-celebration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    min-height: 140px;
}
.celeb-president, .celeb-donkey {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}
.celeb-crown {
    font-size: 2.5rem;
    animation: crownBounce 1s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(212,168,83,0.6));
}
@keyframes crownBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-8px) scale(1.15); }
}
.celeb-donkey-icon {
    font-size: 2.2rem;
    animation: donkeyWobble 0.6s ease-in-out infinite alternate;
}
@keyframes donkeyWobble {
    0%   { transform: rotate(-8deg); }
    100% { transform: rotate(8deg); }
}
.celeb-avatar {
    font-size: 2.2rem;
    margin: 0.15rem 0;
}
.celeb-name {
    font-family: var(--font-head);
    font-size: 0.95rem;
    color: var(--text);
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.celeb-label {
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(212,168,83,0.5);
}
.celeb-label-donkey {
    color: #e74c3c;
    text-shadow: 0 0 10px rgba(231,76,60,0.4);
}
.celeb-vs {
    font-family: var(--font-head);
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* Drop-in animations */
.animate-drop {
    animation: dropIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.animate-drop-delay {
    opacity: 0;
    animation: dropIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s forwards;
}
@keyframes dropIn {
    0%   { opacity: 0; transform: translateY(-60px) scale(0.5); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-fade {
    opacity: 0;
    animation: fadeIn 0.4s ease 0.5s forwards;
}
@keyframes fadeIn {
    to { opacity: 1; }
}
.animate-slide {
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
}
.ranking-row:nth-child(1) .animate-slide, .ranking-row.animate-slide:nth-child(1) { animation-delay: 0.6s; }
.ranking-row.animate-slide:nth-child(2) { animation-delay: 0.75s; }
.ranking-row.animate-slide:nth-child(3) { animation-delay: 0.9s; }
.ranking-row.animate-slide:nth-child(4) { animation-delay: 1.05s; }
.ranking-row.animate-slide:nth-child(5) { animation-delay: 1.2s; }
.ranking-row.animate-slide:nth-child(6) { animation-delay: 1.35s; }
@keyframes slideIn {
    0%   { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Confetti */
.confetti-particle {
    position: absolute;
    top: -10px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    animation: confettiFall linear forwards;
    pointer-events: none;
    z-index: 10;
}
.confetti-particle:nth-child(odd) {
    border-radius: 50%;
    width: 6px;
    height: 6px;
}
@keyframes confettiFall {
    0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateY(350px) rotate(720deg); opacity: 0; }
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .president-game-wrapper { padding: 0.5rem; }

    .round-table { max-width: 100%; }

    .card {
        width: 46px;
        height: 66px;
    }
    .card-rank-top, .card-rank-bottom { font-size: 0.65rem; }
    .card-suit-center { font-size: 1rem; }

    .player-hand { gap: 0.1rem; }

    .seat-avatar { width: 42px; height: 42px; font-size: 1.3rem; }
    .seat-avatar-lg { width: 48px; height: 48px; font-size: 1.5rem; }
    .seat-name { font-size: 0.6rem; max-width: 60px; }
    .seat-cards { font-size: 0.55rem; }

    .action-btn { padding: 0.5rem 1rem; font-size: 0.75rem; }

    .lobby-logo h1 { font-size: 1.5rem; }

    .avatar-option { width: 38px; height: 38px; font-size: 1.15rem; }
}

@media (max-width: 400px) {
    .card {
        width: 40px;
        height: 58px;
    }
    .card-suit-center { font-size: 0.85rem; }

    .seat-avatar { width: 36px; height: 36px; font-size: 1.1rem; }
    .seat-avatar-lg { width: 42px; height: 42px; font-size: 1.3rem; }
    .seat-name { font-size: 0.55rem; max-width: 50px; }

    .pile-area { min-width: 80px; }

    .avatar-option { width: 34px; height: 34px; font-size: 1rem; }
}
