/* /Components/AppErrorBoundary.razor.rz.scp.css */
.error-boundary[b-qsyk07zu9k] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
}

.error-content[b-qsyk07zu9k] {
    max-width: 600px;
    padding: 2.5rem;
    background: var(--surface-color);
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.error-content h2[b-qsyk07zu9k] {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.75rem;
}

.error-message[b-qsyk07zu9k] {
    margin: 0 0 2rem 0;
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
}

.error-actions[b-qsyk07zu9k] {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.btn-primary[b-qsyk07zu9k],
.btn-secondary[b-qsyk07zu9k] {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary[b-qsyk07zu9k] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-primary:hover[b-qsyk07zu9k] {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-secondary[b-qsyk07zu9k] {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover[b-qsyk07zu9k] {
    background: var(--border-color);
}

.btn-link[b-qsyk07zu9k] {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0.5rem;
}

.btn-link:hover[b-qsyk07zu9k] {
    color: var(--text-primary);
}

.error-details[b-qsyk07zu9k] {
    margin-top: 1.5rem;
    text-align: left;
    background: var(--card-bg);
    border-radius: 0.5rem;
    padding: 1rem;
}

.error-details summary[b-qsyk07zu9k] {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    user-select: none;
}

.error-details pre[b-qsyk07zu9k] {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0.25rem;
    overflow-x: auto;
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .error-details pre[b-qsyk07zu9k] {
        background: rgba(255, 255, 255, 0.05);
    }
}
/* /Components/CardComponent.razor.rz.scp.css */
/* Card - cream background, orange border, corner numbers */
.card[b-qx3pvl5t33] {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    user-select: none;
    perspective: 1000px;
    background: transparent;
    flex-shrink: 0;
}

.card-inner[b-qx3pvl5t33] {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.2s ease;
    transform-style: preserve-3d;
}

/* Enhanced hover for playable cards (not face-down, not disabled) */
.card:hover:not(.disabled):not(.face-down) .card-inner[b-qx3pvl5t33] {
    transform: translateY(-10px) scale(1.12);
    filter: brightness(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.card:active:not(.disabled) .card-inner[b-qx3pvl5t33] {
    transform: translateY(-2px);
}

.card.selected .card-inner[b-qx3pvl5t33] {
    transform: translateY(-8px);
}

.card.disabled[b-qx3pvl5t33] {
    cursor: default;
}

/* Flip animation */
.card.flipping .card-inner[b-qx3pvl5t33] {
    animation: cardFlip-b-qx3pvl5t33 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Static face-down: hide front, show back without 3D transform */
.card.face-down .card-front[b-qx3pvl5t33] {
    display: none;
}

.card.face-down .card-back[b-qx3pvl5t33] {
    transform: none;
    z-index: 2;
}

@keyframes cardFlip-b-qx3pvl5t33 {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(180deg); }
}

/* Card sizes */
.card-small[b-qx3pvl5t33] {
    width: 55px;
    height: 77px;
}

.card-medium[b-qx3pvl5t33] {
    width: 90px;
    height: 126px;
}

.card-large[b-qx3pvl5t33] {
    width: 110px;
    height: 154px;
}

/* Front and back faces */
.card-front[b-qx3pvl5t33],
.card-back[b-qx3pvl5t33] {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Front face - cream with orange border and blue accent stripes */
.card-front[b-qx3pvl5t33] {
    background: var(--card-face-bg, #f5f0e1);
    border: 3px solid var(--card-border, #c47a2a);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    z-index: 2;
    transform: rotateY(0deg);
    position: relative;
    overflow: hidden;
}

/* Blue accent stripes at top and bottom of card face */
.card-front[b-qx3pvl5t33]::before,
.card-front[b-qx3pvl5t33]::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--card-back-bg, #4a5ea0);
    z-index: 0;
}

.card-front[b-qx3pvl5t33]::before { top: 0; }
.card-front[b-qx3pvl5t33]::after { bottom: 0; }

.card.selected .card-front[b-qx3pvl5t33] {
    border-color: var(--current-player-border, #4fc3f7);
    box-shadow: 0 0 12px rgba(79, 195, 247, 0.6);
}

.card.playable .card-front[b-qx3pvl5t33] {
    animation: playable-glow-b-qx3pvl5t33 1.5s ease-in-out infinite;
}

@keyframes playable-glow-b-qx3pvl5t33 {
    0%, 100% { box-shadow: 0 0 6px rgba(74, 222, 128, 0.3), 0 0 2px rgba(74, 222, 128, 0.2); }
    50% { box-shadow: 0 0 14px rgba(74, 222, 128, 0.6), 0 0 28px rgba(74, 222, 128, 0.3); }
}

/* Corner numbers */
.card-corner[b-qx3pvl5t33] {
    position: absolute;
    font-weight: 700;
    color: var(--card-color, #6b7280);
    line-height: 1;
}

.card-corner.top-left[b-qx3pvl5t33] {
    top: 4px;
    left: 5px;
}

.card-corner.bottom-right[b-qx3pvl5t33] {
    bottom: 4px;
    right: 5px;
    transform: rotate(180deg);
}

.card-small .card-corner[b-qx3pvl5t33] { font-size: 9px; }
.card-medium .card-corner[b-qx3pvl5t33] { font-size: 13px; }
.card-large .card-corner[b-qx3pvl5t33] { font-size: 16px; }

/* Center text/number */
.card-center[b-qx3pvl5t33] {
    font-weight: 900;
    color: var(--card-color, #6b7280);
    line-height: 1;
    white-space: nowrap;
}

.card-small .card-center[b-qx3pvl5t33] { font-size: 2em; }
.card-medium .card-center[b-qx3pvl5t33] { font-size: 3em; }
.card-large .card-center[b-qx3pvl5t33] { font-size: 4em; }

/* Shrink text for wide labels (R+1, R+2) */
.card.wide-text.card-small .card-center[b-qx3pvl5t33] { font-size: 1.3em; }
.card.wide-text.card-medium .card-center[b-qx3pvl5t33] { font-size: 1.8em; }
.card.wide-text.card-large .card-center[b-qx3pvl5t33] { font-size: 2.4em; }
.card.wide-text.card-small .card-corner[b-qx3pvl5t33] { font-size: 6px; }
.card.wide-text.card-medium .card-corner[b-qx3pvl5t33] { font-size: 8px; }
.card.wide-text.card-large .card-corner[b-qx3pvl5t33] { font-size: 10px; }

/* Colorblind accessibility icon */
.card-icon[b-qx3pvl5t33] {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7em;
    opacity: 0.6;
    line-height: 1;
    z-index: 1;
}

.card-small .card-icon[b-qx3pvl5t33] { font-size: 8px; bottom: 10px; }
.card-medium .card-icon[b-qx3pvl5t33] { font-size: 10px; bottom: 14px; }
.card-large .card-icon[b-qx3pvl5t33] { font-size: 12px; bottom: 16px; }

/* Card back - blue crosshatch with orange border */
.card-back[b-qx3pvl5t33] {
    transform: rotateY(180deg);
    z-index: 1;
    background: var(--card-back-bg, #4a5ea0);
    border: 3px solid var(--card-back-border, #c47a2a);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.card-back-pattern[b-qx3pvl5t33] {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.12) 0px,
            rgba(255, 255, 255, 0.12) 1px,
            transparent 1px,
            transparent 8px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.12) 0px,
            rgba(255, 255, 255, 0.12) 1px,
            transparent 1px,
            transparent 8px
        );
}

.card-back-inner-border[b-qx3pvl5t33] {
    position: absolute;
    inset: 3px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Responsive */

/* Compact cards for short viewports (laptops, Playwright default 720px) */
@media (max-height: 900px) {
    .card-small[b-qx3pvl5t33] { width: 44px; height: 62px; }
    .card-medium[b-qx3pvl5t33] { width: 62px; height: 87px; }
    .card-large[b-qx3pvl5t33] { width: 80px; height: 112px; }
    .card-small .card-center[b-qx3pvl5t33] { font-size: 1.5em; }
    .card-medium .card-center[b-qx3pvl5t33] { font-size: 2em; }
    .card-large .card-center[b-qx3pvl5t33] { font-size: 2.8em; }
    .card-small .card-corner[b-qx3pvl5t33] { font-size: 7px; }
    .card-medium .card-corner[b-qx3pvl5t33] { font-size: 9px; }
    .card-front[b-qx3pvl5t33]::before,
    .card-front[b-qx3pvl5t33]::after { height: 4px; }
    .card.wide-text.card-small .card-center[b-qx3pvl5t33] { font-size: 1em; }
    .card.wide-text.card-medium .card-center[b-qx3pvl5t33] { font-size: 1.3em; }
    .card.wide-text.card-large .card-center[b-qx3pvl5t33] { font-size: 1.8em; }
}

/* Scale up cards for tall viewports (1080p+) */
@media (min-height: 1000px) {
    .card-small[b-qx3pvl5t33] { width: 65px; height: 91px; }
    .card-medium[b-qx3pvl5t33] { width: 100px; height: 140px; }
    .card-large[b-qx3pvl5t33] { width: 125px; height: 175px; }
    .card-small .card-center[b-qx3pvl5t33] { font-size: 2.2em; }
    .card-medium .card-center[b-qx3pvl5t33] { font-size: 3.4em; }
    .card-large .card-center[b-qx3pvl5t33] { font-size: 4.5em; }
    .card-small .card-corner[b-qx3pvl5t33] { font-size: 10px; }
    .card-medium .card-corner[b-qx3pvl5t33] { font-size: 14px; }
    .card-large .card-corner[b-qx3pvl5t33] { font-size: 18px; }
    .card.wide-text.card-medium .card-center[b-qx3pvl5t33] { font-size: 2em; }
    .card.wide-text.card-large .card-center[b-qx3pvl5t33] { font-size: 2.8em; }
    .card.wide-text.card-medium .card-corner[b-qx3pvl5t33] { font-size: 10px; }
}

/* Even larger cards for QHD (1440p+) */
@media (min-height: 1300px) {
    .card-small[b-qx3pvl5t33] { width: 78px; height: 109px; }
    .card-medium[b-qx3pvl5t33] { width: 130px; height: 182px; }
    .card-large[b-qx3pvl5t33] { width: 150px; height: 210px; }
    .card-small .card-center[b-qx3pvl5t33] { font-size: 2.6em; }
    .card-medium .card-center[b-qx3pvl5t33] { font-size: 4.2em; }
    .card-large .card-center[b-qx3pvl5t33] { font-size: 5.5em; }
    .card-small .card-corner[b-qx3pvl5t33] { font-size: 12px; }
    .card-medium .card-corner[b-qx3pvl5t33] { font-size: 17px; }
    .card-large .card-corner[b-qx3pvl5t33] { font-size: 22px; }
    .card.wide-text.card-medium .card-center[b-qx3pvl5t33] { font-size: 2.5em; }
    .card.wide-text.card-large .card-center[b-qx3pvl5t33] { font-size: 3.2em; }
    .card.wide-text.card-medium .card-corner[b-qx3pvl5t33] { font-size: 12px; }
}

@media (max-width: 768px) {
    .card-small[b-qx3pvl5t33] { width: 40px; height: 56px; }
    .card-medium[b-qx3pvl5t33] { width: 60px; height: 84px; }
    .card-large[b-qx3pvl5t33] { width: 78px; height: 110px; }
    .card-small .card-center[b-qx3pvl5t33] { font-size: 1.4em; }
    .card-medium .card-center[b-qx3pvl5t33] { font-size: 1.7em; }
    .card-large .card-center[b-qx3pvl5t33] { font-size: 2.4em; }
}

@media (max-width: 375px) {
    .card-small[b-qx3pvl5t33] { width: 36px; height: 50px; }
    .card-medium[b-qx3pvl5t33] { width: 54px; height: 76px; }
    .card-large[b-qx3pvl5t33] { width: 68px; height: 95px; }
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
    .card:not(.disabled)[b-qx3pvl5t33] {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    .card:hover:not(.disabled) .card-inner[b-qx3pvl5t33] { transform: none; }
    .card:active:not(.disabled) .card-inner[b-qx3pvl5t33] {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    .card.selected .card-inner[b-qx3pvl5t33] { transform: translateY(-8px); }
    .card.selected:active:not(.disabled) .card-inner[b-qx3pvl5t33] {
        transform: translateY(-8px) scale(0.95);
    }
}
/* /Components/ColdStartScreen.razor.rz.scp.css */
.cold-start-overlay[b-n57lt4cze1] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.cold-start-card[b-n57lt4cze1] {
    background: white;
    border-radius: 16px;
    padding: 3rem 2rem;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn-b-n57lt4cze1 0.3s ease-out;
}

@keyframes slideIn-b-n57lt4cze1 {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cold-start-icon[b-n57lt4cze1] {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: steam-b-n57lt4cze1 2s ease-in-out infinite;
}

@keyframes steam-b-n57lt4cze1 {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-5px) scale(1.05);
        opacity: 0.9;
    }
}

.cold-start-card h2[b-n57lt4cze1] {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.cold-start-subtitle[b-n57lt4cze1] {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.loading-spinner-small[b-n57lt4cze1] {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin-b-n57lt4cze1 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin-b-n57lt4cze1 {
    to {
        transform: rotate(360deg);
    }
}

.error-message-small[b-n57lt4cze1] {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 0.875rem;
}

.btn-retry[b-n57lt4cze1] {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-retry:hover[b-n57lt4cze1] {
    background: #4f46e5;
}

.btn-retry:active[b-n57lt4cze1] {
    transform: scale(0.98);
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .cold-start-card[b-n57lt4cze1] {
        background: #1e293b;
        color: #f1f5f9;
    }

    .cold-start-card h2[b-n57lt4cze1] {
        color: #f1f5f9;
    }

    .cold-start-subtitle[b-n57lt4cze1] {
        color: #94a3b8;
    }

    .loading-spinner-small[b-n57lt4cze1] {
        border-color: #334155;
        border-top-color: #818cf8;
    }
}
/* /Components/DiscardPileDisplay.razor.rz.scp.css */
.discard-pile-display[b-7t5grqli4j] {
    display: flex;
    align-items: center;
    justify-content: center;
}
.discard-pile-stack[b-7t5grqli4j] {
    position: relative;
}
.pile-thickness-layer[b-7t5grqli4j] {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    background: #c9b896;
    border: 2px solid #c47a2a;
    border-radius: 8px;
    z-index: -1;
}
.pile-thickness-layer.layer-2[b-7t5grqli4j] {
    top: 4px;
    left: 4px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    z-index: -2;
}
.pile-empty-placeholder[b-7t5grqli4j] {
    width: 75px;
    height: 105px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.15);
    font-size: 18px;
}

@media (max-height: 900px) {
    .pile-empty-placeholder[b-7t5grqli4j] {
        width: 58px;
        height: 81px;
    }
}

@media (min-height: 1000px) {
    .pile-empty-placeholder[b-7t5grqli4j] {
        width: 85px;
        height: 119px;
    }
}

@media (min-height: 1300px) {
    .pile-empty-placeholder[b-7t5grqli4j] {
        width: 98px;
        height: 137px;
    }
}
/* /Components/DrawPileDisplay.razor.rz.scp.css */
.draw-pile-display[b-nvf1wbosh8] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.draw-pile-card[b-nvf1wbosh8] {
    width: 60px;
    height: 84px;
    border-radius: 8px;
    background: var(--card-back-bg, #4a5ea0);
    border: 3px solid var(--card-back-border, #c47a2a);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.draw-pile-pattern[b-nvf1wbosh8] {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.12) 0px,
            rgba(255, 255, 255, 0.12) 1px,
            transparent 1px,
            transparent 8px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.12) 0px,
            rgba(255, 255, 255, 0.12) 1px,
            transparent 1px,
            transparent 8px
        );
}

.draw-pile-inner-border[b-nvf1wbosh8] {
    position: absolute;
    inset: 3px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.pile-empty-placeholder[b-nvf1wbosh8] {
    width: 60px;
    height: 84px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.15);
    font-size: 18px;
}

@media (max-height: 900px) {
    .draw-pile-card[b-nvf1wbosh8], .pile-empty-placeholder[b-nvf1wbosh8] {
        width: 46px;
        height: 64px;
    }
}

@media (min-height: 1000px) {
    .draw-pile-card[b-nvf1wbosh8], .pile-empty-placeholder[b-nvf1wbosh8] {
        width: 72px;
        height: 101px;
    }
}

@media (min-height: 1300px) {
    .draw-pile-card[b-nvf1wbosh8], .pile-empty-placeholder[b-nvf1wbosh8] {
        width: 95px;
        height: 133px;
    }
}
/* /Components/FaceDownDisplay.razor.rz.scp.css */
.facedown-display[b-rs686q65ky] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    min-height: 0;
}

.facedown-cards[b-rs686q65ky] {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.card-wrapper[b-rs686q65ky] {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.card-wrapper.selected[b-rs686q65ky] {
    transform: scale(1.05);
}

.facedown-empty[b-rs686q65ky] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #9ca3af;
    font-size: 0.875rem;
}

.empty-text[b-rs686q65ky] {
    font-style: italic;
}

/* Highlight for current player */
.facedown-display.current-player[b-rs686q65ky] {
    background-color: rgba(34, 197, 94, 0.05);
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .facedown-display[b-rs686q65ky] {
        padding: 6px;
        min-height: 70px;
    }

    .facedown-cards[b-rs686q65ky] {
        gap: 6px;
    }

    .facedown-empty[b-rs686q65ky] {
        padding: 15px;
        font-size: 0.75rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .facedown-cards[b-rs686q65ky] {
        gap: 10px; /* Slightly more space for easier touch targeting */
    }

    .card-wrapper[b-rs686q65ky] {
        /* Larger touch target */
        min-width: 48px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
/* /Components/FaceUpDisplay.razor.rz.scp.css */
.faceup-display[b-17w64eg0og] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    min-height: 0;
}

.faceup-cards[b-17w64eg0og] {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.card-wrapper[b-17w64eg0og] {
    flex-shrink: 0;
}

.faceup-empty[b-17w64eg0og] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #9ca3af;
    font-size: 0.875rem;
}

.empty-text[b-17w64eg0og] {
    font-style: italic;
}

/* Highlight for current player */
.faceup-display.current-player[b-17w64eg0og] {
    background-color: rgba(34, 197, 94, 0.05);
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .faceup-display[b-17w64eg0og] {
        padding: 6px;
        min-height: 70px;
    }

    .faceup-cards[b-17w64eg0og] {
        gap: 6px;
    }

    .faceup-empty[b-17w64eg0og] {
        padding: 15px;
        font-size: 0.75rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .faceup-cards[b-17w64eg0og] {
        gap: 10px; /* Slightly more space for easier touch targeting */
    }
}
/* /Components/GameBoard.razor.rz.scp.css */
/* ── Game Board: Full viewport, dark background ── */
.game-board[b-0nqmvlzx2l] {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: var(--game-bg, #2d3448);
    overflow: hidden;
    position: relative;
}

.game-board-loading[b-0nqmvlzx2l] {
    color: white;
    font-size: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.game-board-content[b-0nqmvlzx2l] {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-areas:
        "left top right"
        "left center right"
        "left bottom right";
    grid-template-columns: minmax(100px, 17vw) 1fr minmax(100px, 17vw);
    grid-template-rows: minmax(80px, 0.85fr) auto minmax(150px, 1.5fr);
    gap: 4px;
    padding: 28px 12px 8px;
}

/* ── Game Log (top-left) ── */
.game-log[b-0nqmvlzx2l] {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--log-bg, rgba(20, 25, 45, 0.88));
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 16px;
    line-height: 1.6;
    max-width: min(560px, 50vw);
    max-height: none;
    overflow: visible;
    z-index: 10;
    color: var(--log-text, #c8cdd5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
}

.log-title[b-0nqmvlzx2l] {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--log-title, #ff5252);
}

.log-entry[b-0nqmvlzx2l] {
    white-space: normal;
    word-break: break-word;
    padding: 1px 0;
}

/* ── Toast Notification ── */
.toast-notification[b-0nqmvlzx2l] {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(220, 38, 38, 0.95);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.4rem;
    z-index: 999;
    animation: toastSlideIn-b-0nqmvlzx2l 0.3s ease-out, toastShake-b-0nqmvlzx2l 0.4s ease-in-out 0.3s, toastShake-b-0nqmvlzx2l 0.4s ease-in-out 0.8s, toastFadeOut-b-0nqmvlzx2l 0.5s ease-in 2.5s forwards;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.5), 0 0 60px rgba(220, 38, 38, 0.4);
    border: 3px solid rgba(255, 100, 100, 0.7);
    white-space: nowrap;
}

@keyframes toastSlideIn-b-0nqmvlzx2l {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastShake-b-0nqmvlzx2l {
    0%, 100% { transform: translateX(-50%) translateX(0); }
    25% { transform: translateX(-50%) translateX(-8px); }
    75% { transform: translateX(-50%) translateX(8px); }
}

@keyframes toastFadeOut-b-0nqmvlzx2l {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ── Title and Settings (top-right) ── */
.game-title-area[b-0nqmvlzx2l] {
    position: absolute;
    top: 8px;
    right: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.game-settings[b-0nqmvlzx2l] {
    display: flex;
    gap: 4px;
    align-items: center;
}

.game-title[b-0nqmvlzx2l] {
    font-weight: 900;
    font-size: 26px;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-family: 'Righteous', 'Impact', sans-serif;
    background: linear-gradient(
        90deg,
        #ff9800 0%, #ffb74d 25%, #ffe082 45%, #ffffff 50%,
        #ffe082 55%, #ffb74d 75%, #ff9800 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
    animation: title-shimmer-b-0nqmvlzx2l 20s ease-in-out infinite;
    text-shadow: none;
    position: relative;
}

@keyframes title-glow-b-0nqmvlzx2l {
    0% { filter: drop-shadow(0 0 10px rgba(255, 152, 0, 0.8)) drop-shadow(0 0 25px rgba(255, 87, 34, 0.5)); }
    100% { filter: drop-shadow(0 0 20px rgba(255, 235, 59, 1)) drop-shadow(0 0 45px rgba(255, 152, 0, 0.9)) drop-shadow(0 0 80px rgba(255, 87, 34, 0.5)); }
}

@keyframes title-float-b-0nqmvlzx2l {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.02); }
}

@keyframes title-shimmer-b-0nqmvlzx2l {
    0% { background-position: 100% center; }
    3% { background-position: 100% center; }
    8% { background-position: -100% center; }
    100% { background-position: -100% center; }
}

/* ── Center Area ── */
.center-area[b-0nqmvlzx2l] {
    grid-area: center;
    align-self: center;
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border-radius: 16px;
    padding: 14px 24px 10px;
    background: var(--center-bg, rgba(15, 18, 35, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5;
}

.center-piles[b-0nqmvlzx2l] {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pile[b-0nqmvlzx2l] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pile-label[b-0nqmvlzx2l] {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--accent-color, #ff9800);
}

.pile-count[b-0nqmvlzx2l] {
    font-size: 13px;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.7);
}

.direction-indicator[b-0nqmvlzx2l] {
    font-size: 24px;
    color: var(--primary-color, #4fc3f7);
    opacity: 0.6;
}

/* ── Status Bar ── */
.status-bar[b-0nqmvlzx2l] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    max-width: 560px;
    background: rgba(15, 20, 40, 0.7);
    color: rgba(255, 255, 255, 0.95);
    min-height: 32px;
}

.status-bar:not(:has(*))[b-0nqmvlzx2l] {
    display: none;
}

.status-msg[b-0nqmvlzx2l] {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.action-badge[b-0nqmvlzx2l] {
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
    background: var(--warning-color, #f59e0b);
    color: #000;
    animation: pulse-badge-b-0nqmvlzx2l 1.5s ease-in-out infinite;
}

@keyframes pulse-badge-b-0nqmvlzx2l {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ── Player Zones ── */
.player-zone[b-0nqmvlzx2l] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 4;
    padding: 8px;
    border-radius: 12px;
    background: var(--player-zone-bg, rgba(30, 40, 70, 0.5));
    border: 2px solid var(--player-zone-border, #c47a2a);
    transition: border-color 0.3s, box-shadow 0.3s;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    /* Prevent player zones from resizing when card count changes */
    flex-shrink: 0;
}

/* Local player (bottom) gets cyan border */
.player-zone.local-player[b-0nqmvlzx2l] {
    border-color: var(--local-player-border, #4fc3f7);
}

.player-zone.bottom[b-0nqmvlzx2l] {
    grid-area: bottom;
    justify-self: center;
    align-self: end;
    width: min(90vw, 680px);
    overflow: visible;
    padding-bottom: 2px;
    min-height: 150px;
    z-index: 6;
}

.player-zone.top[b-0nqmvlzx2l] {
    grid-area: top;
    justify-self: center;
    align-self: start;
    transform: rotate(180deg);
    overflow: hidden;
    z-index: 6;
    justify-content: flex-end;
    width: min(60vw, 480px);
    min-height: 120px;
    max-height: 100%;
}

.player-zone.left[b-0nqmvlzx2l] {
    grid-area: left;
    justify-self: center;
    align-self: center;
    transform: none;
    overflow: hidden;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 2px;
    max-width: 100%;
    max-height: min(85vh, 550px);
    min-height: 200px;
}

.player-zone.right[b-0nqmvlzx2l] {
    grid-area: right;
    justify-self: center;
    align-self: center;
    transform: none;
    overflow: hidden;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 2px;
    max-width: 100%;
    max-height: min(85vh, 550px);
    min-height: 200px;
}

/* Turn ring - active turn indicator */
.turn-ring[b-0nqmvlzx2l] {
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    border: 2px solid transparent;
    pointer-events: none;
    transition: border-color 0.3s;
}

.player-zone.active-turn[b-0nqmvlzx2l] {
    border-color: #00e5ff;
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.85), 0 0 40px rgba(0, 229, 255, 0.5), 0 0 60px rgba(0, 229, 255, 0.25), inset 0 0 16px rgba(0, 229, 255, 0.2);
    border-width: 3px;
    animation: turn-zone-glow-b-0nqmvlzx2l 1.5s ease-in-out infinite;
}

.player-zone.active-turn .turn-ring[b-0nqmvlzx2l] {
    border-color: #00e5ff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.7), 0 0 40px rgba(0, 229, 255, 0.3);
    animation: turn-glow-b-0nqmvlzx2l 1.5s ease-in-out infinite;
}

@keyframes turn-zone-glow-b-0nqmvlzx2l {
    0%, 100% { box-shadow: 0 0 18px rgba(0, 229, 255, 0.85), 0 0 40px rgba(0, 229, 255, 0.5), 0 0 60px rgba(0, 229, 255, 0.25), inset 0 0 16px rgba(0, 229, 255, 0.2); }
    50% { box-shadow: 0 0 28px rgba(0, 229, 255, 1), 0 0 55px rgba(0, 229, 255, 0.65), 0 0 80px rgba(0, 229, 255, 0.35), inset 0 0 20px rgba(0, 229, 255, 0.3); }
}

@keyframes turn-glow-b-0nqmvlzx2l {
    0%, 100% { opacity: 0.7; box-shadow: 0 0 14px rgba(0, 229, 255, 0.5); }
    50% { opacity: 1; box-shadow: 0 0 30px rgba(0, 229, 255, 0.9), 0 0 50px rgba(0, 229, 255, 0.4); }
}

/* Title shimmer animation is defined above with the game-title styles */

/* Reduce glow spread for side players to prevent viewport overflow */
.player-zone.left.active-turn[b-0nqmvlzx2l],
.player-zone.right.active-turn[b-0nqmvlzx2l] {
    box-shadow: inset 0 0 14px rgba(0, 229, 255, 0.6);
    border-color: #00e5ff;
    border-width: 3px;
    animation: turn-zone-glow-side-b-0nqmvlzx2l 1.5s ease-in-out infinite;
}

.player-zone.left.active-turn .turn-ring[b-0nqmvlzx2l],
.player-zone.right.active-turn .turn-ring[b-0nqmvlzx2l] {
    box-shadow: none;
    animation: none;
}

@keyframes turn-zone-glow-side-b-0nqmvlzx2l {
    0%, 100% { box-shadow: inset 0 0 14px rgba(0, 229, 255, 0.6); }
    50% { box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.8); }
}

/* ── Player Labels ── */
.player-label[b-0nqmvlzx2l] {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--primary-color, #4fc3f7);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 2px 4px;
    white-space: nowrap;
}

.turn-dot[b-0nqmvlzx2l] {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00e5ff;
    box-shadow: 0 0 12px rgba(0, 229, 255, 1), 0 0 24px rgba(0, 229, 255, 0.5);
    animation: turn-dot-pulse-b-0nqmvlzx2l 1.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes turn-dot-pulse-b-0nqmvlzx2l {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 229, 255, 0.7); transform: scale(1); }
    50% { box-shadow: 0 0 20px rgba(0, 229, 255, 1), 0 0 36px rgba(0, 229, 255, 0.6); transform: scale(1.2); }
}

.opponent-card-count[b-0nqmvlzx2l] {
    display: none;
}

/* ── Stacked Face-Up on Face-Down ── */
.stacked-table-cards[b-0nqmvlzx2l] {
    display: flex;
    gap: 4px;
    align-items: flex-start;
    justify-content: center;
}

.stacked-slot[b-0nqmvlzx2l] {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

/* Face-up on top, face-down peeks out below */
.stacked-faceup[b-0nqmvlzx2l] {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.stacked-facedown[b-0nqmvlzx2l] {
    position: relative;
    z-index: 1;
    margin-top: -80%;
}

/* Empty placeholder to keep slot width stable when face-up card is played */
.stacked-empty[b-0nqmvlzx2l] {
    visibility: hidden;
}

/* Size placeholders match card sizes */
.player-zone.bottom .stacked-empty[b-0nqmvlzx2l],
.player-zone.local-player .stacked-empty[b-0nqmvlzx2l] {
    width: 90px;
    height: 126px;
}

.player-zone.top .stacked-empty[b-0nqmvlzx2l],
.player-zone.left .stacked-empty[b-0nqmvlzx2l],
.player-zone.right .stacked-empty[b-0nqmvlzx2l] {
    width: 55px;
    height: 77px;
}

/* Counter-rotate opponent names so they appear right-side-up */
.player-zone.top .player-label[b-0nqmvlzx2l] {
    transform: rotate(180deg);
}

/* Side player names use writing-mode above, remove counter-rotation */

.zone-label[b-0nqmvlzx2l] {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Counter-rotate zone labels for rotated player zones */
.player-zone.top .zone-label[b-0nqmvlzx2l] {
    transform: rotate(180deg);
}

/* Side player zone labels */
.player-zone.left .zone-label[b-0nqmvlzx2l],
.player-zone.right .zone-label[b-0nqmvlzx2l] {
    font-size: 8px;
}

/* ── Card rows ── */
.table-cards-row[b-0nqmvlzx2l] {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.hand-row[b-0nqmvlzx2l] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.opponent-hand[b-0nqmvlzx2l] {
    display: flex;
    gap: 2px;
    align-items: center;
    justify-content: center;
}

/* Opponent hand overlap for compact display */
.opponent-hand > :not(:first-child)[b-0nqmvlzx2l] {
    margin-left: -36px;
}

/* Top player hand needs tight overlap to save vertical space */
.player-zone.top .opponent-hand > :not(:first-child)[b-0nqmvlzx2l] {
    margin-left: -38px;
}

/* Additional overlap when there are many opponent cards */
.player-zone.top .opponent-hand[b-0nqmvlzx2l] {
    max-width: 100%;
    flex-wrap: nowrap;
}

/* Compact side player zones */
.player-zone.left[b-0nqmvlzx2l],
.player-zone.right[b-0nqmvlzx2l] {
    gap: 1px;
    padding: 4px 2px;
    font-size: 0.8em;
    width: calc(100% - 4px);
    overflow: hidden;
    flex-direction: column-reverse;
}

/* Side player content flows vertically; hand and face-up display horizontally within */
.player-zone.left .opponent-hand[b-0nqmvlzx2l],
.player-zone.right .opponent-hand[b-0nqmvlzx2l] {
    flex-wrap: nowrap;
    flex-shrink: 1;
    flex-direction: row;
    min-height: 0;
    gap: 0;
    max-width: 100%;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    zoom: 0.45;
}

.player-zone.left .opponent-hand > :not(:first-child)[b-0nqmvlzx2l],
.player-zone.right .opponent-hand > :not(:first-child)[b-0nqmvlzx2l] {
    margin-left: -36px;
    margin-top: 0;
}

/* Side player face-up/down cards vertical stack, larger */
.player-zone.left .stacked-table-cards[b-0nqmvlzx2l],
.player-zone.right .stacked-table-cards[b-0nqmvlzx2l] {
    gap: 2px;
    flex-shrink: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    zoom: 0.65;
    max-width: 100%;
    overflow: hidden;
}

/* Side player stacked slots */
.player-zone.left .stacked-slot[b-0nqmvlzx2l],
.player-zone.right .stacked-slot[b-0nqmvlzx2l] {
    margin-bottom: -8px;
    margin-right: 0;
}

/* Hide zone labels on side players to save space */
.player-zone.left .zone-label[b-0nqmvlzx2l],
.player-zone.right .zone-label[b-0nqmvlzx2l] {
    display: none;
}

/* Side player label */
.player-zone.left .player-label[b-0nqmvlzx2l],
.player-zone.right .player-label[b-0nqmvlzx2l] {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    transform: none;
    font-size: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 2px 0;
}

/* ── Action Buttons ── */
.action-buttons[b-0nqmvlzx2l] {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    min-height: 36px;
    position: relative;
    z-index: 10;
}

.btn-play[b-0nqmvlzx2l] {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.5rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-play:hover:not(:disabled)[b-0nqmvlzx2l] {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.6);
}

.btn-play:disabled[b-0nqmvlzx2l] {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.btn-pickup[b-0nqmvlzx2l] {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.5rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    animation: pulse-pickup-b-0nqmvlzx2l 2s ease-in-out infinite;
}

.btn-pickup:hover[b-0nqmvlzx2l] {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
}

@keyframes pulse-pickup-b-0nqmvlzx2l {
    0%, 100% { box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(249, 115, 22, 0.7); }
}

/* ── Game Over ── */
.game-over[b-0nqmvlzx2l] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.97);
    color: white;
    padding: 3rem 5rem;
    border-radius: 20px;
    text-align: center;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: fadeInScale-b-0nqmvlzx2l 0.5s ease-out;
    max-width: min(90vw, 600px);
}

@keyframes fadeInScale-b-0nqmvlzx2l {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.game-over h2[b-0nqmvlzx2l] {
    margin: 0;
    font-size: 2.5rem;
}

.game-over-subtitle[b-0nqmvlzx2l] {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0.5rem 0 0 0;
}

.game-over-winner h2[b-0nqmvlzx2l] {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.game-over-loser h2[b-0nqmvlzx2l] {
    color: #94a3b8;
}

.session-stats[b-0nqmvlzx2l] {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.session-stats h3[b-0nqmvlzx2l] {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: #fbbf24;
}

.stats-grid[b-0nqmvlzx2l] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 250px;
}

.stat-row[b-0nqmvlzx2l] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 1.1rem;
}

.stat-player[b-0nqmvlzx2l] { font-weight: 600; }
.stat-wins[b-0nqmvlzx2l] { color: #fbbf24; font-weight: 700; }

.btn-one-more-round[b-0nqmvlzx2l] {
    margin-top: 2rem;
    padding: 1rem 3rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
    animation: pulse-round-b-0nqmvlzx2l 2s ease-in-out infinite;
}

.btn-one-more-round:hover[b-0nqmvlzx2l] {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
}

@keyframes pulse-round-b-0nqmvlzx2l {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ── Face-up selection overlay ── */
.faceup-selection-overlay[b-0nqmvlzx2l] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    animation: fadeIn-b-0nqmvlzx2l 0.3s ease-out;
}

@keyframes fadeIn-b-0nqmvlzx2l {
    from { opacity: 0; }
    to { opacity: 1; }
}

.faceup-selection-panel[b-0nqmvlzx2l] {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    max-width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideInUp-b-0nqmvlzx2l 0.4s ease-out;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.faceup-selection-panel[b-0nqmvlzx2l]::-webkit-scrollbar {
    display: none;
}

@keyframes slideInUp-b-0nqmvlzx2l {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.faceup-selection-panel h2[b-0nqmvlzx2l] {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
    font-size: 1.75rem;
    text-align: center;
}

.faceup-selection-panel p[b-0nqmvlzx2l] {
    margin: 0.25rem 0;
    color: #4b5563;
    text-align: center;
}

.faceup-selection-info[b-0nqmvlzx2l] {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
    color: #4b5563;
    font-size: 1rem;
}

.faceup-timer[b-0nqmvlzx2l] {
    font-weight: bold;
    color: #6366f1;
    font-size: 1.1rem;
}

.faceup-timer-warning[b-0nqmvlzx2l] {
    color: #ef4444;
    animation: pulse-timer-b-0nqmvlzx2l 1s ease-in-out infinite;
}

@keyframes pulse-timer-b-0nqmvlzx2l {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.faceup-selection-cards[b-0nqmvlzx2l] {
    margin: 1.5rem 0;
    padding: 1rem 1rem 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Prevent any scrollbar from appearing during card hover animations */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.faceup-selection-cards[b-0nqmvlzx2l]::-webkit-scrollbar {
    display: none;
}

.btn-confirm-faceup[b-0nqmvlzx2l] {
    width: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-confirm-faceup:hover:not(:disabled)[b-0nqmvlzx2l] {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.6);
}

.btn-confirm-faceup:disabled[b-0nqmvlzx2l] {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

/* ── Animation Overlays ── */
.card-play-animation[b-0nqmvlzx2l] {
    position: fixed;
    z-index: 999;
    pointer-events: none;
    display: flex;
    gap: 4px;
}

/* Origin positions for card play animation */
.card-play-from-bottom[b-0nqmvlzx2l] {
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
}

.card-play-from-top[b-0nqmvlzx2l] {
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
}

.card-play-from-left[b-0nqmvlzx2l] {
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.card-play-from-right[b-0nqmvlzx2l] {
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
}

.animated-card[b-0nqmvlzx2l] {
    animation: cardSlideToCenter-b-0nqmvlzx2l 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.card-play-from-bottom .animated-card[b-0nqmvlzx2l] {
    animation-name: cardSlideFromBottom-b-0nqmvlzx2l;
}

.card-play-from-top .animated-card[b-0nqmvlzx2l] {
    animation-name: cardSlideFromTop-b-0nqmvlzx2l;
}

.card-play-from-left .animated-card[b-0nqmvlzx2l] {
    animation-name: cardSlideFromLeft-b-0nqmvlzx2l;
}

.card-play-from-right .animated-card[b-0nqmvlzx2l] {
    animation-name: cardSlideFromRight-b-0nqmvlzx2l;
}

@keyframes cardSlideFromBottom-b-0nqmvlzx2l {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-30vh) scale(0.8); opacity: 0; }
}

@keyframes cardSlideFromTop-b-0nqmvlzx2l {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(30vh) scale(0.8); opacity: 0; }
}

@keyframes cardSlideFromLeft-b-0nqmvlzx2l {
    0% { transform: translateX(0) scale(1); opacity: 1; }
    100% { transform: translateX(40vw) scale(0.8); opacity: 0; }
}

@keyframes cardSlideFromRight-b-0nqmvlzx2l {
    0% { transform: translateX(0) scale(1); opacity: 1; }
    100% { transform: translateX(-40vw) scale(0.8); opacity: 0; }
}

@keyframes cardSlideToCenter-b-0nqmvlzx2l {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-30vh) scale(0.8); opacity: 0; }
}

.pile-pickup-animation[b-0nqmvlzx2l] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 998;
    pointer-events: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pickup-card[b-0nqmvlzx2l] {
    position: absolute;
    animation: fanOutAndCollect-b-0nqmvlzx2l 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: var(--card-delay);
}

@keyframes fanOutAndCollect-b-0nqmvlzx2l {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
    30% {
        transform: translate(
            calc(var(--card-index) * 30px - 150px),
            calc(var(--card-index) * -10px)
        ) scale(1.1) rotate(calc(var(--card-index) * 15deg - 75deg));
        opacity: 1;
    }
    60% {
        transform: translate(
            calc(var(--card-index) * 30px - 150px),
            calc(var(--card-index) * -10px)
        ) scale(1.1) rotate(calc(var(--card-index) * 15deg - 75deg));
        opacity: 1;
    }
    100% { transform: translate(0, 200px) scale(0.8) rotate(0deg); opacity: 0; }
}

.card-flip-animation[b-0nqmvlzx2l] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 997;
    pointer-events: none;
}

.flip-card-container[b-0nqmvlzx2l] {
    animation: flipCardReveal-b-0nqmvlzx2l 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

@keyframes flipCardReveal-b-0nqmvlzx2l {
    0% { transform: scale(1) rotateY(180deg); }
    50% { transform: scale(1.2) rotateY(90deg); }
    100% { transform: scale(1) rotateY(0deg); }
}

.reset-clear-animation[b-0nqmvlzx2l] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 996;
    pointer-events: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-card[b-0nqmvlzx2l] {
    position: absolute;
    animation: slideToRemoved-b-0nqmvlzx2l 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: var(--card-delay);
}

@keyframes slideToRemoved-b-0nqmvlzx2l {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
    20% { transform: translate(0, -20px) scale(1.05) rotate(0deg); opacity: 1; }
    80% { transform: translate(120px, 0) scale(0.9) rotate(5deg); opacity: 0.7; }
    100% { transform: translate(120px, 0) scale(0.8) rotate(5deg); opacity: 0; }
}

.reset-display-animation[b-0nqmvlzx2l] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 997;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: resetDisplayFade-b-0nqmvlzx2l 2s ease-in-out forwards;
}

.reset-display-label[b-0nqmvlzx2l] {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    animation: resetLabelPulse-b-0nqmvlzx2l 0.5s ease-in-out 1.4s forwards;
    opacity: 0;
}

@keyframes resetDisplayFade-b-0nqmvlzx2l {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    15% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
    75% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -40%) scale(0.9); }
}

@keyframes resetLabelPulse-b-0nqmvlzx2l {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.four-of-a-kind-animation[b-0nqmvlzx2l] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.15);
    z-index: 995;
    pointer-events: none;
}

.four-of-a-kind-label[b-0nqmvlzx2l] {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    font-weight: 900;
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.8), 0 0 20px rgba(251, 191, 36, 0.6), 3px 3px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.15em;
    animation: fourOfAKindPulse-b-0nqmvlzx2l 1.2s ease-out;
    z-index: 996;
}

@keyframes fourOfAKindPulse-b-0nqmvlzx2l {
    0% { transform: translateX(-50%) scale(0.5); opacity: 0; }
    20% { transform: translateX(-50%) scale(1.3); opacity: 1; }
    40% { transform: translateX(-50%) scale(0.9); opacity: 1; }
    60% { transform: translateX(-50%) scale(1.1); opacity: 1; }
    100% { transform: translateX(-50%) scale(1); opacity: 0; }
}

.four-kind-card[b-0nqmvlzx2l] {
    position: absolute;
    animation: fourOfAKindBurst-b-0nqmvlzx2l 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: var(--card-delay);
}

@keyframes fourOfAKindBurst-b-0nqmvlzx2l {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
    15% { transform: translate(0, -30px) scale(1.2) rotate(0deg); opacity: 1; }
    35% {
        transform: translate(
            calc(var(--card-index) * 80px - 120px),
            calc(var(--card-index) * -40px - 40px)
        ) scale(1.3) rotate(calc(var(--card-index) * 90deg - 135deg));
        opacity: 1;
    }
    100% { transform: translate(150px, 0) scale(0.8) rotate(10deg); opacity: 0; }
}

/* ── Direction Change Animation ── */
.direction-change-animation[b-0nqmvlzx2l] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    z-index: 992;
    pointer-events: none;
    animation: directionFadeInOut-b-0nqmvlzx2l 2s ease-in-out forwards;
}

.direction-change-icon[b-0nqmvlzx2l] {
    font-size: 6rem;
    color: #4fc3f7;
    text-shadow: 0 0 20px rgba(79, 195, 247, 0.8), 0 0 40px rgba(79, 195, 247, 0.4);
    animation: directionSpin-b-0nqmvlzx2l 1s ease-out;
}

.direction-change-label[b-0nqmvlzx2l] {
    font-size: 1.5rem;
    font-weight: 800;
    color: #4fc3f7;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.6);
    animation: directionLabelFade-b-0nqmvlzx2l 2s ease-out;
}

@keyframes directionSpin-b-0nqmvlzx2l {
    0% { transform: scale(0.3) rotate(-180deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(0deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes directionLabelFade-b-0nqmvlzx2l {
    0% { opacity: 0; transform: translateY(20px); }
    30% { opacity: 1; transform: translateY(0); }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes directionFadeInOut-b-0nqmvlzx2l {
    0% { opacity: 0; }
    15% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

.victory-animation[b-0nqmvlzx2l] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 994;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 70%);
}

.victory-winner-name[b-0nqmvlzx2l] {
    position: absolute;
    top: 33%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    z-index: 995;
    animation: fadeInDown-b-0nqmvlzx2l 0.6s ease-out 0.3s both;
}

.btn-victory-continue[b-0nqmvlzx2l] {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
    color: #000;
    font-size: 1.3rem;
    font-weight: 800;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
    z-index: 996;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: fadeInDown-b-0nqmvlzx2l 0.6s ease-out 1s both;
}

.btn-victory-continue:hover[b-0nqmvlzx2l] {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.7);
}

.btn-reveal-continue[b-0nqmvlzx2l] {
    margin-top: 2rem;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    padding: 0.8rem 2.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(74, 222, 128, 0.4);
    transition: all 0.3s ease;
    z-index: 996;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.btn-reveal-continue:hover[b-0nqmvlzx2l] {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(74, 222, 128, 0.6);
}

.victory-label[b-0nqmvlzx2l] {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.6), 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: victoryPulse-b-0nqmvlzx2l 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    z-index: 995;
    white-space: nowrap;
}

.victory-label-neutral[b-0nqmvlzx2l] {
    color: #94a3b8;
    text-shadow: 0 0 20px rgba(148, 163, 184, 0.5), 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes victoryPulse-b-0nqmvlzx2l {
    0% { transform: translateX(-50%) scale(0.3); opacity: 0; }
    15% { transform: translateX(-50%) scale(1.3); opacity: 1; }
    60% { transform: translateX(-50%) scale(1); opacity: 1; }
    100% { transform: translateX(-50%) scale(1); opacity: 0.9; }
}

.victory-card[b-0nqmvlzx2l] {
    position: absolute;
    animation: victoryCascade-b-0nqmvlzx2l 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: var(--card-delay);
}

@keyframes victoryCascade-b-0nqmvlzx2l {
    0% { transform: translate(0, -100px) scale(0.8) rotate(0deg); opacity: 0; }
    10% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
    25% {
        transform: translate(
            calc(sin(var(--card-index) * 0.5) * 200px),
            calc(cos(var(--card-index) * 0.5) * 150px)
        ) scale(1.2) rotate(calc(var(--card-index) * 30deg - 180deg));
        opacity: 1;
    }
    100% {
        transform: translate(
            calc(sin(var(--card-index) * 1.5) * 500px),
            calc(cos(var(--card-index) * 1.5) * 450px)
        ) scale(0.6) rotate(calc(var(--card-index) * 90deg - 540deg));
        opacity: 0;
    }
}

/* End-game reveal */
.end-game-reveal-animation[b-0nqmvlzx2l] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: rgba(0, 0, 0, 0.92);
    z-index: 993;
    pointer-events: auto;
    padding: 0.5rem 1rem;
    overflow-y: auto;
    box-sizing: border-box;
}

.reveal-header[b-0nqmvlzx2l] {
    text-align: center;
    margin-bottom: 0.5rem;
    animation: fadeInDown-b-0nqmvlzx2l 0.6s ease-out;
    flex-shrink: 0;
}

.reveal-header h2[b-0nqmvlzx2l] {
    margin: 0 0 0.25rem 0;
    font-size: 2rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.reveal-header p[b-0nqmvlzx2l] {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes fadeInDown-b-0nqmvlzx2l {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal-players[b-0nqmvlzx2l] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 800px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.reveal-player[b-0nqmvlzx2l] {
    opacity: 0;
    animation: revealPlayerFadeIn-b-0nqmvlzx2l 0.8s ease-out forwards;
    animation-delay: var(--player-delay);
}

@keyframes revealPlayerFadeIn-b-0nqmvlzx2l {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.reveal-player-name[b-0nqmvlzx2l] {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
    text-align: center;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.4);
    border-radius: 12px;
}

.reveal-cards[b-0nqmvlzx2l] {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    min-height: 60px;
    overflow: visible;
    align-items: center;
}

.reveal-section-label[b-0nqmvlzx2l] {
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin: 0.25rem 0;
}

.reveal-card[b-0nqmvlzx2l] {
    opacity: 0;
    animation: revealCardFlip-b-0nqmvlzx2l 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: var(--card-delay);
    margin-left: -8px;
}

.reveal-card:first-of-type[b-0nqmvlzx2l] {
    margin-left: 0;
}

@keyframes revealCardFlip-b-0nqmvlzx2l {
    0% { opacity: 0; transform: perspective(1000px) rotateY(180deg) scale(0.8); }
    50% { opacity: 1; transform: perspective(1000px) rotateY(90deg) scale(1.1); }
    100% { opacity: 1; transform: perspective(1000px) rotateY(0deg) scale(1); }
}

.card-flip-wrapper[b-0nqmvlzx2l] {
    transform-style: preserve-3d;
    position: relative;
}

/* ── Responsive ── */

/* Compact layout for short viewports (Playwright default 720px, laptops ≤900px) */
@media (max-height: 900px) {
    .game-board-content[b-0nqmvlzx2l] {
        padding: 26px 10px 0;
        gap: 2px;
        grid-template-rows: minmax(60px, 0.75fr) auto minmax(120px, 1.4fr);
        grid-template-columns: minmax(100px, 16vw) 1fr minmax(100px, 16vw);
    }
    .center-area[b-0nqmvlzx2l] {
        padding: 4px 16px 2px;
        gap: 2px;
    }
    .center-piles[b-0nqmvlzx2l] { gap: 10px; }
    .direction-indicator[b-0nqmvlzx2l] { font-size: 16px; }
    .status-bar[b-0nqmvlzx2l] { padding: 2px 8px; font-size: 11px; min-height: 22px; }
    .player-zone[b-0nqmvlzx2l] { padding: 3px 5px; gap: 1px; min-height: 0; }
    .player-zone.bottom[b-0nqmvlzx2l] { padding-bottom: 4px; min-height: 150px; }
    .player-zone.left[b-0nqmvlzx2l],
    .player-zone.right[b-0nqmvlzx2l] {
        transform: none;
        min-height: 150px;
    }
    .player-zone.top[b-0nqmvlzx2l] {
        width: min(50vw, 380px);
        min-height: 90px;
    }
    .player-label[b-0nqmvlzx2l] { font-size: 11px; }
    .zone-label[b-0nqmvlzx2l] { font-size: 8px; }
    .table-cards-row[b-0nqmvlzx2l] { gap: 2px; }
    .hand-row[b-0nqmvlzx2l] { gap: 0; }
    .action-buttons[b-0nqmvlzx2l] { margin-top: 1px; min-height: 24px; }
    .btn-play[b-0nqmvlzx2l], .btn-pickup[b-0nqmvlzx2l] { font-size: 0.75rem; padding: 0.2rem 1rem; }
    .btn-dev-play[b-0nqmvlzx2l] { font-size: 0.6rem; padding: 1px 5px; }
    .game-log[b-0nqmvlzx2l] { font-size: 13px; max-width: min(440px, 45vw); padding: 8px 10px; }
    .log-title[b-0nqmvlzx2l] { font-size: 14px; }
    .pile-label[b-0nqmvlzx2l] { font-size: 10px; }
    .pile-count[b-0nqmvlzx2l] { font-size: 11px; }
    .stacked-facedown[b-0nqmvlzx2l] { margin-top: -85%; }
    .player-zone.bottom .stacked-empty[b-0nqmvlzx2l],
    .player-zone.local-player .stacked-empty[b-0nqmvlzx2l] {
        width: 62px;
        height: 87px;
    }
    /* Hide dev Auto button on opponents to save space */
    .player-zone.top .btn-dev-play[b-0nqmvlzx2l],
    .player-zone.left .btn-dev-play[b-0nqmvlzx2l],
    .player-zone.right .btn-dev-play[b-0nqmvlzx2l] {
        display: none;
    }
}

/* Scale up for large viewports (1080p) */
@media (min-height: 1000px) {
    .game-log[b-0nqmvlzx2l] { font-size: 17px; max-width: 400px; padding: 12px 16px; line-height: 1.7; }
    .log-title[b-0nqmvlzx2l] { font-size: 18px; }
    .game-board-content[b-0nqmvlzx2l] { gap: 8px; padding: 40px 8px 12px; }
    .center-area[b-0nqmvlzx2l] { padding: 18px 28px 14px; gap: 8px; }
    .center-piles[b-0nqmvlzx2l] { gap: 24px; }
    .pile-label[b-0nqmvlzx2l] { font-size: 14px; }
    .pile-count[b-0nqmvlzx2l] { font-size: 15px; }
    .direction-indicator[b-0nqmvlzx2l] { font-size: 28px; }
    .status-bar[b-0nqmvlzx2l] { padding: 10px 18px; font-size: 16px; }
    .player-zone[b-0nqmvlzx2l] { padding: 10px 12px; gap: 6px; }
    .player-label[b-0nqmvlzx2l] { font-size: 16px; }
    .zone-label[b-0nqmvlzx2l] { font-size: 11px; }
    .table-cards-row[b-0nqmvlzx2l] { gap: 6px; }
    .action-buttons[b-0nqmvlzx2l] { margin-top: 6px; }
    .btn-play[b-0nqmvlzx2l], .btn-pickup[b-0nqmvlzx2l] { font-size: 1.1rem; padding: 0.6rem 2.5rem; }
}

/* Even larger for QHD (1440p+) */
@media (min-height: 1300px) {
    .game-log[b-0nqmvlzx2l] { font-size: 19px; max-width: 440px; padding: 16px 20px; line-height: 1.8; }
    .log-title[b-0nqmvlzx2l] { font-size: 20px; }
    .game-board-content[b-0nqmvlzx2l] { gap: 12px; padding: 44px 12px 18px; }
    .center-area[b-0nqmvlzx2l] { padding: 22px 32px 18px; gap: 10px; }
    .center-piles[b-0nqmvlzx2l] { gap: 28px; }
    .pile-label[b-0nqmvlzx2l] { font-size: 15px; }
    .pile-count[b-0nqmvlzx2l] { font-size: 16px; }
    .direction-indicator[b-0nqmvlzx2l] { font-size: 32px; }
    .status-bar[b-0nqmvlzx2l] { padding: 12px 20px; font-size: 17px; }
    .player-zone[b-0nqmvlzx2l] { padding: 14px 16px; gap: 8px; }
    .player-label[b-0nqmvlzx2l] { font-size: 18px; }
    .zone-label[b-0nqmvlzx2l] { font-size: 12px; }
    .table-cards-row[b-0nqmvlzx2l] { gap: 8px; }
    .btn-play[b-0nqmvlzx2l], .btn-pickup[b-0nqmvlzx2l] { font-size: 1.2rem; padding: 0.7rem 3rem; }
    .game-title[b-0nqmvlzx2l] { font-size: 22px; }
}

/* Narrower viewports: constrain side player card sizes */
@media (max-width: 1100px) {
    .game-board-content[b-0nqmvlzx2l] {
        grid-template-columns: minmax(80px, 15vw) 1fr minmax(80px, 15vw);
    }
    .player-zone.left .opponent-hand[b-0nqmvlzx2l],
    .player-zone.right .opponent-hand[b-0nqmvlzx2l] {
        zoom: 0.38;
        margin-left: -2px;
        margin-right: -2px;
    }
    .player-zone.left .stacked-table-cards[b-0nqmvlzx2l],
    .player-zone.right .stacked-table-cards[b-0nqmvlzx2l] {
        zoom: 0.55;
    }
    .player-zone.left .opponent-hand > :not(:first-child)[b-0nqmvlzx2l],
    .player-zone.right .opponent-hand > :not(:first-child)[b-0nqmvlzx2l] {
        margin-left: -40px;
    }
}

@media (max-width: 768px) {
    .game-log[b-0nqmvlzx2l] { display: none; }
    .game-title[b-0nqmvlzx2l] { font-size: 12px; }

    .center-area[b-0nqmvlzx2l] {
        padding: 12px 16px 10px;
        gap: 6px;
    }
    .center-piles[b-0nqmvlzx2l] { gap: 12px; }
    .status-bar[b-0nqmvlzx2l] { font-size: 10px; padding: 6px 10px; gap: 8px; }

    .player-zone[b-0nqmvlzx2l] { padding: 4px; gap: 2px; }
    .player-label[b-0nqmvlzx2l] { font-size: 10px; }
    .zone-label[b-0nqmvlzx2l] { font-size: 8px; }

    .game-over[b-0nqmvlzx2l] { padding: 2rem 2rem; max-width: 90vw; }
    .game-over h2[b-0nqmvlzx2l] { font-size: 1.75rem; }
    .btn-one-more-round[b-0nqmvlzx2l] { font-size: 1.25rem; padding: 0.75rem 2rem; }
    .victory-label[b-0nqmvlzx2l] { font-size: 2.5rem; }
    .four-of-a-kind-label[b-0nqmvlzx2l] { font-size: 2rem; }
}

@media (max-width: 375px) {
    .center-area[b-0nqmvlzx2l] { padding: 8px 10px 6px; }
    .game-over[b-0nqmvlzx2l] { padding: 1.5rem 1rem; }
    .btn-one-more-round[b-0nqmvlzx2l] { font-size: 1rem; padding: 0.6rem 1.5rem; }
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-play[b-0nqmvlzx2l], .btn-pickup[b-0nqmvlzx2l], .btn-confirm-faceup[b-0nqmvlzx2l], .btn-one-more-round[b-0nqmvlzx2l] {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        min-height: 48px;
    }
    .game-board-content[b-0nqmvlzx2l], .center-area[b-0nqmvlzx2l], .player-zone[b-0nqmvlzx2l] {
        -webkit-user-select: none;
        user-select: none;
    }
}

/* ── Icon Buttons (Rules, Stats) ── */
.btn-icon[b-0nqmvlzx2l] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.btn-icon:hover[b-0nqmvlzx2l] {
    background: rgba(255, 255, 255, 0.2);
}

/* ── Leave Game Button ── */
.btn-leave-game[b-0nqmvlzx2l] {
    background: rgba(239, 68, 68, 0.3);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: background 0.2s;
}

.btn-leave-game:hover[b-0nqmvlzx2l] {
    background: rgba(239, 68, 68, 0.6);
    color: white;
}

/* ── Dialog Overlays ── */
.dialog-overlay[b-0nqmvlzx2l] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    animation: fadeIn-b-0nqmvlzx2l 0.2s ease-out;
}

.dialog-panel[b-0nqmvlzx2l] {
    background: var(--dialog-bg, #1e2538);
    color: var(--dialog-text, #e2e8f0);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideInUp-b-0nqmvlzx2l 0.3s ease-out;
}

.dialog-header[b-0nqmvlzx2l] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dialog-header h2[b-0nqmvlzx2l] {
    margin: 0;
    font-size: 1.5rem;
}

.btn-dialog-close[b-0nqmvlzx2l] {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.btn-dialog-close:hover[b-0nqmvlzx2l] {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.dialog-body[b-0nqmvlzx2l] {
    padding: 1.25rem 1.5rem;
}

.dialog-body h3[b-0nqmvlzx2l] {
    margin: 1rem 0 0.5rem;
    color: var(--accent-color, #ff9800);
    font-size: 1.1rem;
}

.dialog-body h3:first-child[b-0nqmvlzx2l] {
    margin-top: 0;
}

.dialog-body p[b-0nqmvlzx2l] {
    margin: 0.25rem 0 0.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.dialog-body ul[b-0nqmvlzx2l], .dialog-body ol[b-0nqmvlzx2l] {
    margin: 0.25rem 0 0.75rem;
    padding-left: 1.25rem;
}

.dialog-body li[b-0nqmvlzx2l] {
    margin-bottom: 0.3rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Stats dialog specific */
.stats-table[b-0nqmvlzx2l] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stat-detail-row[b-0nqmvlzx2l] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat-player-name[b-0nqmvlzx2l] {
    font-weight: 600;
}

.stat-badges[b-0nqmvlzx2l] {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.stat-badge[b-0nqmvlzx2l] {
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    white-space: nowrap;
}

.stat-badge.win[b-0nqmvlzx2l] {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    font-weight: 600;
}

/* ── Reset+2 Special Effect ── */
.reset-plus-two-effect[b-0nqmvlzx2l] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 990;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(212, 160, 23, 0.2) 0%, transparent 70%);
    animation: r2FadeInOut-b-0nqmvlzx2l 2s ease-in-out forwards;
}

@keyframes r2FadeInOut-b-0nqmvlzx2l {
    0% { opacity: 0; }
    15% { opacity: 1; }
    75% { opacity: 1; }
    100% { opacity: 0; }
}

.r2-label[b-0nqmvlzx2l] {
    font-size: 3.5rem;
    font-weight: 900;
    color: #d4a017;
    text-shadow: 0 0 30px rgba(212, 160, 23, 0.8), 0 0 60px rgba(212, 160, 23, 0.4), 3px 3px 6px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.1em;
    animation: r2LabelPulse-b-0nqmvlzx2l 2s ease-out;
    z-index: 2;
}

.r2-sublabel[b-0nqmvlzx2l] {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fbbf24;
    margin-top: 0.5rem;
    opacity: 0;
    animation: r2SubFade-b-0nqmvlzx2l 2s ease-out 0.3s forwards;
    z-index: 2;
}

@keyframes r2LabelPulse-b-0nqmvlzx2l {
    0% { transform: scale(0.3); opacity: 0; }
    20% { transform: scale(1.4); opacity: 1; }
    40% { transform: scale(0.9); opacity: 1; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes r2SubFade-b-0nqmvlzx2l {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.r2-star-burst[b-0nqmvlzx2l] {
    position: absolute;
    width: 300px;
    height: 300px;
}

.r2-star[b-0nqmvlzx2l] {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #d4a017;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    box-shadow: 0 0 8px rgba(212, 160, 23, 0.8);
    animation: r2StarBurst-b-0nqmvlzx2l 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(var(--star-index) * 0.05s);
}

@keyframes r2StarBurst-b-0nqmvlzx2l {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    30% { opacity: 1; }
    100% {
        transform: translate(
            calc(-50% + cos(var(--star-index) * 30deg) * 150px),
            calc(-50% + sin(var(--star-index) * 30deg) * 150px)
        ) scale(0.3);
        opacity: 0;
    }
}

/* ── Version/Copyright ── */
.version-copyright[b-0nqmvlzx2l] {
    position: fixed;
    bottom: 2px;
    right: 8px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
    pointer-events: none;
    z-index: 5;
    letter-spacing: 0.3px;
}

/* ── Dev Tools (development only) ── */
.btn-dev-play[b-0nqmvlzx2l] {
    background: rgba(139, 92, 246, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.5);
    color: #c4b5fd;
    padding: 2px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-dev-play:hover[b-0nqmvlzx2l] {
    background: rgba(139, 92, 246, 0.6);
    color: white;
}
/* /Components/HandDisplay.razor.rz.scp.css */
.hand-display[b-hg2lfyo1sr] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    min-height: 0;
}

.hand-cards[b-hg2lfyo1sr] {
    display: flex;
    gap: 0;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
    max-width: 100%;
}

.card-wrapper[b-hg2lfyo1sr] {
    position: relative;
    display: inline-block;
    flex-shrink: 1;
    padding-top: 12px;
    margin-left: -16px;
}

.card-wrapper:first-child[b-hg2lfyo1sr] {
    margin-left: 0;
}

.hand-empty[b-hg2lfyo1sr] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
}

.empty-text[b-hg2lfyo1sr] {
    color: #9ca3af;
    font-size: 1.1em;
    font-weight: 500;
    font-style: italic;
}

.current-player[b-hg2lfyo1sr] {
    border-radius: 8px;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
    .hand-display[b-hg2lfyo1sr] {
        padding: 4px;
    }

    .hand-cards[b-hg2lfyo1sr] {
        gap: 4px;
    }
}

@media (max-width: 375px) {
    .hand-cards[b-hg2lfyo1sr] {
        gap: 3px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .card-wrapper[b-hg2lfyo1sr] {
        padding: 4px;
        margin: -4px;
    }

    .hand-display[b-hg2lfyo1sr] {
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }
}
/* /Components/RemovedPileDisplay.razor.rz.scp.css */
.removed-pile-display[b-dyyjkhqssl] {
    display: flex;
    align-items: center;
    justify-content: center;
}
.removed-pile-stack[b-dyyjkhqssl] {
    position: relative;
}
.pile-empty-placeholder[b-dyyjkhqssl] {
    width: 75px;
    height: 105px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.15);
    font-size: 18px;
}
.pile-empty-placeholder.removed[b-dyyjkhqssl] {
    border-style: dashed;
}

@media (max-height: 900px) {
    .pile-empty-placeholder[b-dyyjkhqssl] {
        width: 58px;
        height: 81px;
    }
}

@media (min-height: 1000px) {
    .pile-empty-placeholder[b-dyyjkhqssl] {
        width: 85px;
        height: 119px;
    }
}

@media (min-height: 1300px) {
    .pile-empty-placeholder[b-dyyjkhqssl] {
        width: 98px;
        height: 137px;
    }
}
/* /Components/SoundToggle.razor.rz.scp.css */
.sound-toggle[b-u6nn8uw14o] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sound-toggle:hover[b-u6nn8uw14o] {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
}

.sound-toggle:active[b-u6nn8uw14o] {
    transform: scale(0.95);
}

.sound-icon[b-u6nn8uw14o] {
    font-size: 0.85rem;
    line-height: 1;
}

.sound-label[b-u6nn8uw14o] {
    font-weight: 500;
    font-size: 0.65rem;
}

@media (max-width: 640px) {
    .sound-label[b-u6nn8uw14o] {
        display: none;
    }

    .sound-toggle[b-u6nn8uw14o] {
        padding: 4px;
        min-width: 32px;
        min-height: 32px;
        justify-content: center;
    }
}
/* /Components/ThemeToggle.razor.rz.scp.css */
.theme-toggle[b-0gi12knyum] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle:hover[b-0gi12knyum] {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
}

.theme-toggle:active[b-0gi12knyum] {
    transform: scale(0.95);
}

.theme-icon[b-0gi12knyum] {
    font-size: 0.85rem;
    line-height: 1;
}

.theme-label[b-0gi12knyum] {
    font-weight: 500;
    font-size: 0.65rem;
}

@media (max-width: 640px) {
    .theme-label[b-0gi12knyum] {
        display: none;
    }

    .theme-toggle[b-0gi12knyum] {
        padding: 4px;
        min-width: 32px;
        min-height: 32px;
        justify-content: center;
    }
}
/* /Components/TurnTimerDisplay.razor.rz.scp.css */
.turn-timer[b-t1zb4dlcra] {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.turn-timer.timer-inactive[b-t1zb4dlcra] {
    display: none;
}

.timer-icon[b-t1zb4dlcra] {
    font-size: 0.85rem;
    line-height: 1;
}

.timer-bar-container[b-t1zb4dlcra] {
    width: 60px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.timer-bar-fill[b-t1zb4dlcra] {
    height: 100%;
    border-radius: 4px;
    background: #22c55e;
    transition: width 1s linear;
}

.turn-timer.timer-warning .timer-bar-fill[b-t1zb4dlcra] {
    background: #ef4444;
    animation: pulse-bar-b-t1zb4dlcra 1s ease-in-out infinite;
}

.timer-value[b-t1zb4dlcra] {
    font-size: 0.8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.9);
    min-width: 2.5ch;
}

.turn-timer.timer-warning .timer-value[b-t1zb4dlcra] {
    color: #ef4444;
}

@keyframes pulse-bar-b-t1zb4dlcra {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Mobile responsive */
@media (max-width: 640px) {
    .timer-bar-container[b-t1zb4dlcra] {
        width: 40px;
        height: 6px;
    }

    .timer-value[b-t1zb4dlcra] {
        font-size: 0.7rem;
    }
}
/* /Components/UpdateNotification.razor.rz.scp.css */
.update-notification[b-yz9ehx0b8n] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideDown-b-yz9ehx0b8n 0.4s ease-out;
}

.update-content[b-yz9ehx0b8n] {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.update-icon[b-yz9ehx0b8n] {
    font-size: 2rem;
    animation: rotate-b-yz9ehx0b8n 2s linear infinite;
}

.update-text[b-yz9ehx0b8n] {
    flex: 1;
}

.update-text strong[b-yz9ehx0b8n] {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.update-text p[b-yz9ehx0b8n] {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.update-button[b-yz9ehx0b8n] {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.update-button:hover[b-yz9ehx0b8n] {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.update-button:active[b-yz9ehx0b8n] {
    transform: scale(0.98);
}

.update-dismiss[b-yz9ehx0b8n] {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.update-dismiss:hover[b-yz9ehx0b8n] {
    opacity: 1;
}

@keyframes slideDown-b-yz9ehx0b8n {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes rotate-b-yz9ehx0b8n {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .update-notification[b-yz9ehx0b8n] {
        padding: 0.75rem;
    }

    .update-content[b-yz9ehx0b8n] {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .update-icon[b-yz9ehx0b8n] {
        font-size: 1.5rem;
    }

    .update-text strong[b-yz9ehx0b8n] {
        font-size: 1rem;
    }

    .update-text p[b-yz9ehx0b8n] {
        font-size: 0.85rem;
    }

    .update-button[b-yz9ehx0b8n] {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-c5wio5uqtd] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-c5wio5uqtd] {
    flex: 1;
}

.content[b-c5wio5uqtd] {
    padding: 0;
}
/* /Pages/Game.razor.rz.scp.css */
.game-container[b-ro07dhr77l] {
    width: 100%;
    min-height: calc(100vh - 3.5rem);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.loading-overlay[b-ro07dhr77l], .error-container[b-ro07dhr77l] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 3.5rem);
    color: white;
}

.loading-spinner[b-ro07dhr77l] {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin-b-ro07dhr77l 1s linear infinite;
}

@keyframes spin-b-ro07dhr77l {
    to { transform: rotate(360deg); }
}

.error-card[b-ro07dhr77l] {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    text-align: center;
}

.error-card h2[b-ro07dhr77l] {
    color: #dc2626;
    margin-bottom: 1rem;
}

.error-message[b-ro07dhr77l] {
    color: #374151;
    margin-bottom: 1.5rem;
}

.btn-primary[b-ro07dhr77l] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover[b-ro07dhr77l] {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:active[b-ro07dhr77l] {
    transform: translateY(0) scale(0.98);
}

/* Touch optimizations */
@media (hover: none) and (pointer: coarse) {
    .game-container[b-ro07dhr77l] {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: none;
    }
    
    .btn-primary[b-ro07dhr77l] {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        min-height: 48px;
        min-width: 120px;
    }
    
    .btn-primary:hover[b-ro07dhr77l] {
        transform: none; /* Disable hover on touch devices */
    }
    
    .btn-primary:active[b-ro07dhr77l] {
        transform: scale(0.98);
        opacity: 0.9;
    }
}
