/* Euchre – LuckyLobby game styles */

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

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

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

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

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

.euchre-lobby .rules-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.euchre-lobby .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;
}
.euchre-lobby .rules-card ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
}
.euchre-lobby .rules-card li { margin-bottom: 0.25rem; }
.euchre-lobby .rules-card strong { color: var(--accent); }

/* Timer & Bot selectors */
.euchre-lobby .timer-selector,
.euchre-lobby .bot-selector {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
}
.euchre-lobby .timer-label,
.euchre-lobby .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;
}
.euchre-lobby .timer-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}
.euchre-lobby .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;
}
.euchre-lobby .timer-btn.active,
.euchre-lobby .timer-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}
.euchre-lobby .bot-selector-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.euchre-lobby .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;
}
.euchre-lobby .bot-adj-btn:hover { border-color: var(--accent); color: var(--accent); }
.euchre-lobby .bot-count-display {
    font-family: var(--font-head);
    font-size: 1.75rem;
    color: var(--accent);
    min-width: 2rem;
    text-align: center;
}
.euchre-lobby .bot-selector-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.euchre-lobby .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%;
}
.euchre-lobby .lobby-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
}
.euchre-lobby .lobby-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.euchre-lobby .lobby-btn small {
    font-family: var(--font-body);
    font-size: 0.75rem;
    opacity: 0.7;
}

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

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

.euchre-table-screen .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;
}
.euchre-table-screen .hud-left,
.euchre-table-screen .hud-center,
.euchre-table-screen .hud-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.euchre-table-screen .hud-logo {
    font-family: var(--font-head);
    font-size: 0.85rem;
    color: var(--accent);
}
.euchre-table-screen .hud-round {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}
.euchre-table-screen .hud-room-code {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Score display */
.hud-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}
.score-team {
    color: var(--text);
    font-family: var(--font-head);
    font-size: 0.8rem;
}
.score-team strong {
    color: var(--accent);
    font-size: 1rem;
}
.score-sep {
    color: var(--text-muted);
}

/* Trump indicator in HUD */
.hud-trump {
    font-size: 0.85rem;
    background: var(--bg-card);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-family: var(--font-head);
    border: 1px solid var(--accent);
}
.hud-trump .trump-suit-sym {
    font-size: 1.1rem;
}

/* Tricks counter */
.hud-tricks {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

/* Timer */
.euchre-table-screen .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;
}
.euchre-table-screen .hud-timer.timer-urgent {
    color: var(--danger);
    animation: euchre-pulse 0.5s ease-in-out infinite alternate;
}
@keyframes euchre-pulse { to { opacity: 0.5; } }

/* Game message */
.euchre-table-screen .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;
}
.euchre-table-screen .game-message.error {
    color: var(--danger);
    background: rgba(248, 113, 113, 0.08);
}

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

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

.euchre-table-screen .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 ---- */
.euchre-table-screen .table-seats {
    position: absolute;
    inset: 0;
}

.euchre-table-screen .table-seat {
    position: absolute;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    transition: all 0.3s;
    min-width: 70px;
}
.euchre-table-screen .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);
}
.euchre-table-screen .table-seat.sitting-out { opacity: 0.35; }

.euchre-table-screen .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;
}

.euchre-table-screen .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;
}

.euchre-table-screen .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-team-badge {
    font-size: 0.55rem;
    font-family: var(--font-head);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    margin-top: 1px;
}
.seat-team-badge.team-partner {
    color: var(--success);
}
.seat-team-badge.team-opponent {
    color: var(--danger);
}
.seat-dealer-chip {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-dark);
    font-size: 0.5rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    margin-top: 2px;
    text-shadow: none;
}

/* "You" seat at bottom */
.euchre-table-screen .my-seat {
    text-align: center;
    margin-top: -20px;
    position: relative;
    z-index: 15;
}
.euchre-table-screen .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: euchre-my-turn-glow 1.5s ease-in-out infinite alternate;
}
@keyframes euchre-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); }
}
.euchre-table-screen .my-seat .seat-name {
    font-size: 0.8rem;
    color: var(--accent);
}
.euchre-table-screen .my-seat .seat-cards {
    font-size: 0.7rem;
}

/* ---- Trick area (center of table) ---- */
.trick-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: 220px;
    height: 160px;
}
.trick-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.trick-card-slot {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: all 0.3s ease;
}
.trick-card-slot.pos-north { top: 0; left: 50%; transform: translateX(-50%); }
.trick-card-slot.pos-east  { top: 50%; right: 0; transform: translateY(-50%); }
.trick-card-slot.pos-south { bottom: 0; left: 50%; transform: translateX(-50%); }
.trick-card-slot.pos-west  { top: 50%; left: 0; transform: translateY(-50%); }

.trick-card-name {
    font-size: 0.55rem;
    color: rgba(255,255,255,0.6);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.trick-card-slot .card {
    width: 48px;
    height: 68px;
}
.trick-card-slot .card .card-suit-center {
    font-size: 1rem;
}

.trick-card-slot.trick-winner .card {
    box-shadow: 0 0 14px rgba(74, 222, 128, 0.5), 0 0 28px rgba(74, 222, 128, 0.2);
    border-color: var(--success);
}

/* ---- Turned-up card area ---- */
.turned-up-area {
    position: absolute;
    bottom: 15%;
    right: 8%;
    text-align: center;
    z-index: 8;
}
.turned-up-label {
    font-size: 0.55rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.turned-up-card .card {
    width: 48px;
    height: 68px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.turned-up-card .card .card-suit-center {
    font-size: 1rem;
}

/* ---- Trump badge on table ---- */
.trump-badge {
    position: absolute;
    top: 12%;
    right: 10%;
    text-align: center;
    z-index: 8;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 4px 10px;
}
.trump-badge-label {
    display: block;
    font-size: 0.5rem;
    font-family: var(--font-head);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.trump-badge-suit {
    font-size: 1.6rem;
    line-height: 1.2;
}
.trump-badge-suit.suit-red { color: #e74c3c; }
.trump-badge-suit.suit-black { color: #f0f0f0; }

/* ---- Cards ---- */
.euchre-game-wrapper .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);
}
.euchre-game-wrapper .card.interactive {
    cursor: pointer;
}
.euchre-game-wrapper .card.interactive:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.euchre-game-wrapper .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);
}
.euchre-game-wrapper .card.card-legal {
    cursor: pointer;
}
.euchre-game-wrapper .card.card-illegal {
    opacity: 0.45;
    cursor: not-allowed;
}
.euchre-game-wrapper .card.card-illegal:hover {
    transform: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.euchre-game-wrapper .card.suit-h,
.euchre-game-wrapper .card.suit-d { color: #e74c3c; }
.euchre-game-wrapper .card.suit-c,
.euchre-game-wrapper .card.suit-s { color: #2d2d2d; }

.euchre-game-wrapper .card.card-bower {
    border-color: var(--accent);
    background: linear-gradient(135deg, #fffef8 0%, #fff9e6 100%);
}

.euchre-game-wrapper .card-rank-top {
    font-size: 0.75rem;
    line-height: 1;
}
.euchre-game-wrapper .card-suit-center {
    font-size: 1.2rem;
    text-align: center;
    line-height: 1;
}
.euchre-game-wrapper .card-rank-bottom {
    font-size: 0.75rem;
    line-height: 1;
    text-align: right;
    transform: rotate(180deg);
}
.euchre-game-wrapper .card-back {
    background: linear-gradient(135deg, #1a3a5c 0%, #0d1f33 100%);
    border-color: #2a5a8c;
}
.euchre-game-wrapper .card-back-design {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 1.5rem;
}

.bower-badge {
    position: absolute;
    top: 1px;
    right: 1px;
    background: var(--accent);
    color: var(--bg-dark);
    font-size: 0.4rem;
    font-weight: 900;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    letter-spacing: -0.02em;
}

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

/* Action bar */
.euchre-table-screen .action-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0 0.75rem;
    flex-wrap: wrap;
}
.euchre-table-screen .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;
}
.euchre-table-screen .play-btn {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}
.euchre-table-screen .play-btn:hover:not(:disabled) {
    background: #e8c97a;
}
.euchre-table-screen .play-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.euchre-table-screen .pass-btn {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border);
}
.euchre-table-screen .pass-btn:hover:not(:disabled) {
    border-color: var(--danger);
    color: var(--danger);
}
.euchre-table-screen .pass-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Alone toggle */
.alone-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-head);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    transition: all 0.2s;
}
.alone-toggle:hover {
    border-color: var(--accent);
    color: var(--text);
}
.alone-toggle input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}

/* Suit picker */
.suit-picker {
    text-align: center;
    padding: 0.5rem 0 0.75rem;
}
.suit-picker-label {
    font-family: var(--font-head);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}
.suit-picker-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.suit-pick-btn {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: all 0.2s;
    font-family: var(--font-head);
}
.suit-pick-btn:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: scale(1.08);
}
.suit-pick-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    transform: none;
}
.suit-pick-btn .suit-pick-sym {
    font-size: 1.6rem;
    line-height: 1;
}
.suit-pick-btn .suit-pick-name {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.suit-pick-btn.suit-red .suit-pick-sym { color: #e74c3c; }
.suit-pick-btn.suit-black .suit-pick-sym { color: #f0f0f0; }

/* ---- Result overlay ---- */
.euchre-table-screen .round-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 18, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}
.euchre-table-screen .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;
}
.euchre-table-screen .round-overlay-content h2 {
    font-family: var(--font-head);
    color: var(--accent);
    margin: 0 0 1rem;
    font-size: 1.25rem;
}
.euchre-table-screen .round-overlay .lobby-btn {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.8rem 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%;
}
.euchre-table-screen .round-overlay .lobby-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
}
.euchre-table-screen .round-overlay .lobby-btn small {
    font-family: var(--font-body);
    font-size: 0.75rem;
    opacity: 0.7;
}

.result-body {
    margin-bottom: 1rem;
}
.result-detail {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.result-detail strong {
    color: var(--accent);
}
.result-euchre {
    color: var(--danger);
    font-family: var(--font-head);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.result-march {
    color: var(--success);
    font-family: var(--font-head);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.result-score {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0.75rem;
    background: var(--bg-dark);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}
.result-score-team {
    text-align: center;
}
.result-score-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
}
.result-score-value {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--accent);
}
.result-score-team.winner .result-score-value {
    color: var(--success);
}

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

/* ---- Opening animation: dealer selection ---- */
.dealer-pick-highlight .seat-avatar {
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}
.dealer-pick-highlight.dealer-flash .seat-avatar {
    box-shadow: 0 0 24px var(--accent-glow), 0 0 48px rgba(212, 168, 83, 0.3);
    border-color: var(--accent);
    transform: scale(1.15);
}
.dealer-pick-highlight.dealer-chosen .seat-avatar {
    box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(212, 168, 83, 0.4);
    border-color: var(--accent);
    transform: scale(1.2);
}
.dealer-pick-highlight.dealer-chosen::after {
    content: 'DEALER';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-head);
    font-size: 0.6rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    animation: dealerLabelPop 0.4s ease-out;
}
.my-seat.dealer-pick-highlight.dealer-chosen::after {
    top: auto;
    bottom: -18px;
}
@keyframes dealerLabelPop {
    0%   { transform: translateX(-50%) scale(0); opacity: 0; }
    60%  { transform: translateX(-50%) scale(1.2); opacity: 1; }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* ---- Opening animation: card dealing ---- */
.deal-card-anim {
    position: absolute;
    z-index: 50;
    width: 42px;
    height: 60px;
    pointer-events: none;
    animation: dealCardFly 0.3s ease-out forwards;
}
.deal-card-anim .card {
    width: 42px;
    height: 60px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
@keyframes dealCardFly {
    0%   { opacity: 1; transform: scale(0.7) rotate(0deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
.deal-card-anim.card-land {
    animation: dealCardLand 0.15s ease-out;
}
@keyframes dealCardLand {
    0%   { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Seat card counter during deal */
.seat-deal-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: var(--bg-dark);
    font-family: var(--font-head);
    font-size: 0.55rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    animation: countPop 0.2s ease-out;
    z-index: 5;
}
@keyframes countPop {
    0%   { transform: scale(0); }
    60%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ---- Opening animation: turned-up card flip ---- */
.kitty-flip-anim {
    animation: kittyFlip 0.6s ease-in-out;
    transform-style: preserve-3d;
}
@keyframes kittyFlip {
    0%   { transform: rotateY(180deg) scale(0.8); opacity: 0; }
    50%  { transform: rotateY(90deg) scale(1.1); opacity: 0.6; }
    100% { transform: rotateY(0deg) scale(1); opacity: 1; }
}

/* ---- Opening animation: trump call speech bubbles ---- */
.trump-call-bubble {
    position: absolute;
    z-index: 60;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.4rem 0.7rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text);
    white-space: nowrap;
    animation: bubblePop 0.35s ease-out;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    pointer-events: none;
}
.trump-call-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--bg-card);
}
.trump-call-bubble.bubble-top::after {
    bottom: auto;
    top: -6px;
    border-top: none;
    border-bottom: 6px solid var(--bg-card);
}
.trump-call-bubble.bubble-pass {
    color: var(--text-muted);
    border-color: rgba(154, 149, 144, 0.3);
}
.trump-call-bubble.bubble-call {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(212, 168, 83, 0.1);
    font-weight: 600;
}
.trump-call-bubble.bubble-alone {
    color: var(--success);
    border-color: var(--success);
    background: rgba(74, 222, 128, 0.1);
}
.trump-call-bubble .bubble-suit {
    font-size: 0.95rem;
    vertical-align: -1px;
}
.trump-call-bubble .bubble-suit.suit-red { color: #e74c3c; }
.trump-call-bubble .bubble-suit.suit-black { color: #fff; }
@keyframes bubblePop {
    0%   { transform: scale(0) translateY(10px); opacity: 0; }
    60%  { transform: scale(1.08) translateY(-2px); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
.trump-call-bubble.bubble-fade {
    animation: bubbleFade 0.3s ease-out forwards;
}
@keyframes bubbleFade {
    0%   { opacity: 1; }
    100% { opacity: 0; transform: translateY(-5px); }
}

/* ---- Deal sequence center message ---- */
.deal-phase-msg {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-head);
    font-size: 0.85rem;
    color: var(--accent);
    text-align: center;
    z-index: 55;
    pointer-events: none;
    animation: phaseMsgIn 0.4s ease-out;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    letter-spacing: 0.05em;
}
@keyframes phaseMsgIn {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

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

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

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

    .euchre-table-screen .player-hand { gap: 0.1rem; }

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

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

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

    .trick-area { width: 180px; height: 130px; }
    .trick-card-slot .card { width: 40px; height: 58px; }
    .trick-card-slot .card .card-suit-center { font-size: 0.85rem; }

    .turned-up-card .card { width: 40px; height: 58px; }

    .suit-pick-btn { width: 54px; height: 54px; }
    .suit-pick-btn .suit-pick-sym { font-size: 1.3rem; }

    .hud-score { font-size: 0.75rem; gap: 0.3rem; }
}

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

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

    .trick-area { width: 150px; height: 110px; }
}
