/* Player Score Bar Component Styles */

/* Status Phase UI Styles */
.status-steps-container {
    width: 100%;
    padding: 20px 0;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-steps-container h3 {
    text-align: center;
    margin-bottom: 20px;
    font-family: var(--header-font);
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-steps-container .cards-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.status-steps-container .cards-wrapper::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for Chrome/Safari/Edge */
.status-phase-steps::-webkit-scrollbar {
    display: none;
}

.status-step-card {
    background-color: rgba(13, 19, 33, 0.9);
    border: 1px solid rgba(78, 124, 255, 0.3);
    border-radius: 4px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 100px;
    max-width: 120px;
    height: 90px;
    flex: 1 1 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
    box-sizing: border-box;
    cursor: pointer;
}

.status-step-card.current-step {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(78, 124, 255, 0.5);
    transform: translateY(-2px);
}

.status-step-card .step-number {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--accent-secondary);
    opacity: 0.9;
}

.status-step-card .step-text {
    font-size: 0.75rem;
    line-height: 1.2;
    margin-top: 8px;
    color: var(--text-color);
    opacity: 0.9;
    word-wrap: break-word;
    width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
}

.status-step-card:hover {
    border-color: rgba(78, 124, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.status-step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.status-step-card h3 {
    font-size: 1rem;
    margin: 0 0 8px 0;
    color: var(--accent-secondary);
    font-family: var(--header-font);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step-number {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: var(--header-font);
    color: var(--accent-secondary);
    opacity: 0.9;
}

.step-text {
    font-size: 0.85rem;
    text-align: center;
    color: var(--text-color);
    line-height: 1.2;
    margin-top: 8px;
    opacity: 0.9;
}

/* Responsive adjustments for status step cards */
@media (max-width: 1200px) {
    .status-step-card {
        min-width: 90px;
        padding: 10px 5px;
    }
    
    .status-step-card .step-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 992px) {
    .status-step-card {
        min-width: 85px;
        height: 85px;
    }
    
    .status-step-card .step-number {
        font-size: 0.9rem;
    }
    
    .status-step-card .step-text {
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    .status-steps-container .cards-wrapper {
        padding: 0 10px;
        gap: 6px;
    }
    
    .status-step-card {
        min-width: 75px;
        height: 80px;
        padding: 8px 4px;
    }
    
    .status-step-card .step-number {
        font-size: 0.85rem;
        top: 4px;
        left: 4px;
    }
    
    .status-step-card .step-text {
        font-size: 0.6rem;
        margin-top: 6px;
    }
}

@media (max-width: 576px) {
    .status-step-card {
        min-width: 60px;
        height: 70px;
    }
    
    .status-step-card .step-number {
        font-size: 0.8rem;
    }
    
    .status-step-card .step-text {
        font-size: 0.55rem;
        margin-top: 4px;
    }
    
    .status-steps-container h3 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
}

/* Hide status player boxes */
.status-player-box {
    display: none !important;
}

/* Common container styles for all phases */
.agenda-player-bar-container,
.strategy-player-bar-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    padding: 0 20px 50px 20px; /* Removed top padding since timer is no longer in player score bar */
    box-sizing: border-box;
}

/* Special styling for action phase players container */
.action-phase-players-container {
    width: 100%;
    margin: 0;
    padding: 0 0 50px 0; /* Removed top padding since timer is no longer in player score bar */
    justify-content: flex-start;
    background: none;
    border: none;
    overflow: visible;
}

.player-score-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    width: 100%;
    max-width: 100%;
    padding: 30px 0 50px 0; /* Added top padding to ensure player cards are visible */
    margin: 0;
    justify-content: space-between;
    position: relative;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

/* Ensure player cards have no animations whatsoever - with extremely high specificity */
html body .player-score-bar .player-card,
.player-score-bar .player-card:nth-child(1),
.player-score-bar .player-card:nth-child(2),
.player-score-bar .player-card:nth-child(3),
.player-score-bar .player-card:nth-child(4),
.player-score-bar .player-card:nth-child(5),
.player-score-bar .player-card:nth-child(6),
.player-score-bar .player-card:nth-child(7),
.player-score-bar .player-card:nth-child(8) {
    flex: 1 1 0;
    min-width: 80px;
    max-width: none;
    background-color: var(--primary-color);
    border: 2px solid;
    border-radius: 8px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin: 0;
    position: relative; /* Added for speaker icon positioning */
    /* Explicitly disable all animations with highest possible specificity */
    animation: none !important;
    -webkit-animation: none !important;
    -moz-animation: none !important;
    transition: none !important;
    -webkit-transition: none !important;
    -moz-transition: none !important;
    transform: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
}

/* Completely remove hover effects */
.player-card:hover {
    transform: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Ensure active player cards have no animations whatsoever - with extremely high specificity */
html body .player-score-bar .player-card.active-player,
.player-score-bar .player-card.active-player:nth-child(1),
.player-score-bar .player-card.active-player:nth-child(2),
.player-score-bar .player-card.active-player:nth-child(3),
.player-score-bar .player-card.active-player:nth-child(4),
.player-score-bar .player-card.active-player:nth-child(5),
.player-score-bar .player-card.active-player:nth-child(6),
.player-score-bar .player-card.active-player:nth-child(7),
.player-score-bar .player-card.active-player:nth-child(8) {
    border-width: 3px;
    transform: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    animation: none !important;
    -webkit-animation: none !important;
    -moz-animation: none !important;
    transition: none !important;
    -webkit-transition: none !important;
    -moz-transition: none !important;
}

.player-card.passed-player {
    opacity: 0.7;
}

.player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.player-name {
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: relative;
    margin-bottom: 0.25rem;
}

.current-player-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-top: 3px;
}

.player-faction {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.player-faction-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: contain;
}

.player-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
    flex: 1;
}

.player-details-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Score components styling */
.score-components {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
}

.player-score-display {
    font-size: 1.5rem;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

/* Custodians styles */
.custodians-row {
    min-height: 32px; /* Ensure consistent height */
}

.custodians-placeholder {
    height: 32px; /* Match the height of the custodians button */
    visibility: hidden;
}

.custodians-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background-color: rgba(255, 140, 0, 0.2);
    color: #FFA500;
    border: 1px solid rgba(255, 140, 0, 0.4);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8rem;
    width: 100%;
    box-sizing: border-box;
}

.custodians-icon {
    color: #FFA500;
    font-size: 0.9rem;
}

/* This style is defined more completely below */

.score-component-row {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 2px 0;
}

.score-component {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 2px 5px;
    width: 100%;
}

.component-label {
    font-size: 0.7rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.component-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 2px;
}

.component-value {
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 15px;
    text-align: center;
}

/* Dot indicators for score components */
.component-dots {
    display: flex;
    margin-top: 4px;
    justify-content: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 3px;
    transition: background-color 0.2s ease;
}

.dot.active {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Specific colors for different component types */
.secrets .dot.active {
    background-color: rgba(255, 165, 0, 0.8); /* Orange for secrets */
}

.support .dot.active {
    background-color: rgba(0, 255, 255, 0.8); /* Cyan for support */
}

/* Other VPs specific styling - 2 rows of 5 dots each */
.other-vps .component-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 50px; /* Optimal width for 5 dots per row */
    margin: 0 auto;
}

.other-vps .dot {
    margin: 1px 1px; /* Tighter spacing for the grid */
    width: 8px;
    height: 8px;
    flex-shrink: 0; /* Prevent dots from shrinking */
}

/* Force break after 5th dot to ensure 2 rows */
.other-vps .dot:nth-child(6) {
    margin-left: 1px; /* Start of second row */
}

.other-vps .dot.active {
    background-color: rgba(138, 43, 226, 0.8); /* Purple/violet for other VPs */
}

.score-btn {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    padding: 0;
    font-size: 0.7rem;
}

.score-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.custodians-btn {
    background-color: rgba(255, 140, 0, 0.2);
    color: #FFA500;
    border: 1px solid rgba(255, 140, 0, 0.4);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 32px; /* Match the placeholder height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.custodians-btn:hover {
    background-color: rgba(255, 140, 0, 0.4);
}

.custodians-btn.active {
    background-color: rgba(255, 140, 0, 0.6);
    color: #fff;
}

.player-sc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 5px 8px;
    margin-top: 3px;
    font-size: 0.9rem;
    position: relative;
}

.player-sc.used {
    opacity: 0.6;
    text-decoration: line-through;
}

/* Naalu Token Indicator Styles */
.player-sc.naalu-token-active {
    border: 2px solid rgba(255, 255, 0, 0.8); /* Golden border for Naalu token */
    box-shadow: 0 0 8px rgba(255, 255, 0, 0.4);
}

.naalu-token-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background-color: #ffd700;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Strategy Card Color Coding */
.player-sc[data-card="Leadership"] {
    background-color: rgba(139, 0, 0, 0.4); /* Dark red */
    border: 1px solid rgba(139, 0, 0, 0.6);
}

.player-sc[data-card="Diplomacy"] {
    background-color: rgba(255, 165, 0, 0.4); /* Orange */
    border: 1px solid rgba(255, 165, 0, 0.6);
}

.player-sc[data-card="Politics"] {
    background-color: rgba(255, 215, 0, 0.4); /* Gold */
    border: 1px solid rgba(255, 215, 0, 0.6);
}

.player-sc[data-card="Construction"] {
    background-color: rgba(0, 100, 0, 0.4); /* Dark green */
    border: 1px solid rgba(0, 100, 0, 0.6);
}

.player-sc[data-card="Trade"] {
    background-color: rgba(32, 178, 170, 0.4); /* Light sea green */
    border: 1px solid rgba(32, 178, 170, 0.6);
}

.player-sc[data-card="Warfare"] {
    background-color: rgba(0, 0, 139, 0.4); /* Dark blue */
    border: 1px solid rgba(0, 0, 139, 0.6);
}

.player-sc[data-card="Technology"] {
    background-color: rgba(75, 0, 130, 0.4); /* Indigo */
    border: 1px solid rgba(75, 0, 130, 0.6);
}

.player-sc[data-card="Imperial"] {
    background-color: rgba(147, 112, 219, 0.4); /* Medium purple */
    border: 1px solid rgba(147, 112, 219, 0.6);
}

.player-sc[data-card="Industry"] {
    background-color: rgba(50, 205, 50, 0.4); /* Lime green */
    border: 1px solid rgba(50, 205, 50, 0.6);
}

.player-sc[data-card="Logistics"] {
    background-color: rgba(135, 206, 235, 0.4); /* Sky blue */
    border: 1px solid rgba(135, 206, 235, 0.6);
}

.sc-icon {
    font-size: 1.1rem;
}

.sc-initiative {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.sc-name {
    flex-grow: 0;
    text-align: center;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 4px;
}

.player-sc-none {
    font-size: 0.7rem;
    opacity: 0.7;
    text-align: center;
    margin-top: 3px;
}

.player-bar-message {
    width: 100%;
    text-align: center;
    padding: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* No animations for the active player card */

/* Speaker Icon Below Player Card */
.speaker-icon-below {
    position: absolute;
    bottom: -35px; /* Adjusted to ensure better visibility within container */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background-color: var(--accent-secondary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    /* Removed animation */
}

.speaker-icon-below i {
    font-size: 14px;
}

/* Custodians Icon Below Player Card */
.custodians-icon-below {
    position: absolute;
    bottom: -35px; /* Same position as speaker icon for consistency */
    left: calc(50% + 40px); /* Offset to the right of the speaker icon */
    transform: translateX(-50%);
    z-index: 10;
    background-color: #FFA500; /* Orange/gold color for custodians */
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    /* Removed animation */
}

.custodians-icon-below i {
    font-size: 14px;
}

/* Removed animation keyframes as they're no longer needed */

/* Responsive Strategy Card Adjustments for 8+ Player Games */

/* For screens that might need to accommodate 8+ players */
@media (max-width: 1600px) {
    /* When player cards are smaller, reduce strategy card size slightly */
    .player-score-bar .player-card:nth-child(n+8) .player-sc {
        padding: 3px 5px;
        font-size: 0.8rem;
        gap: 1px;
    }
    
    .player-score-bar .player-card:nth-child(n+8) .sc-name {
        max-width: 85px;
        margin-left: 3px;
    }
    
    .player-score-bar .player-card:nth-child(n+8) .sc-initiative {
        width: 16px;
        height: 16px;
        font-size: 0.7rem;
    }
    
    .player-score-bar .player-card:nth-child(n+8) .sc-icon {
        font-size: 0.9rem;
    }
}

@media (max-width: 1200px) {
    /* For smaller screens with 8+ players, make further adjustments */
    .player-score-bar .player-card:nth-child(n+8) .player-sc {
        padding: 2px 4px;
        font-size: 0.75rem;
    }
    
    .player-score-bar .player-card:nth-child(n+8) .sc-name {
        max-width: 70px;
    }
    
    .player-score-bar .player-card:nth-child(n+8) .sc-initiative {
        width: 14px;
        height: 14px;
        font-size: 0.65rem;
    }
}

/* For 9-10 player games specifically */
@media (max-width: 1400px) {
    .player-score-bar .player-card:nth-child(n+9) .player-sc {
        padding: 4px 6px;
        font-size: 0.8rem;
        gap: 1px;
    }
    
    .player-score-bar .player-card:nth-child(n+9) .sc-name {
        max-width: 85px;
        margin-left: 3px;
    }
    
    .player-score-bar .player-card:nth-child(n+9) .sc-initiative {
        width: 18px;
        height: 18px;
        font-size: 0.75rem;
    }
    
    .player-score-bar .player-card:nth-child(n+9) .sc-icon {
        font-size: 1rem;
    }
}

/* Score menu button to replace custodians button */
.score-menu-btn {
    background-color: rgba(78, 124, 255, 0.2);
    color: #4E7CFF;
    border: 1px solid rgba(78, 124, 255, 0.4);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
}

.score-menu-btn:hover {
    background-color: rgba(78, 124, 255, 0.4);
}

/* Score menu overlay */
.score-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-menu-content {
    background-color: #1a1f2e;
    background: linear-gradient(135deg, #1a1f2e 0%, #242a3d 100%);
    border: 2px solid rgba(78, 124, 255, 0.6);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 2px 16px rgba(78, 124, 255, 0.3);
    backdrop-filter: blur(10px);
}

.score-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 2px solid rgba(78, 124, 255, 0.4);
    background: linear-gradient(135deg, rgba(78, 124, 255, 0.2) 0%, rgba(78, 124, 255, 0.1) 100%);
    border-radius: 10px 10px 0 0;
}

.score-menu-header h3 {
    margin: 0;
    color: #ffffff;
    font-family: var(--header-font);
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.score-menu-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-menu-close:hover {
    background-color: rgba(255, 100, 100, 0.3);
    border-color: rgba(255, 100, 100, 0.5);
    transform: scale(1.05);
}

.score-menu-body {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 10px 10px;
}

.score-menu-item {
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 8px;
    border: 1px solid rgba(78, 124, 255, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.score-menu-item:last-child {
    margin-bottom: 0;
}

.score-menu-item label {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.score-menu-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.score-menu-controls .score-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.score-menu-controls .score-btn:hover {
    background: linear-gradient(135deg, rgba(78, 124, 255, 0.4) 0%, rgba(78, 124, 255, 0.2) 100%);
    border-color: rgba(78, 124, 255, 0.6);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(78, 124, 255, 0.3);
}

.score-menu-controls .score-value {
    font-size: 1.4rem;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.score-menu-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.score-menu-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.score-menu-dots .dot.active {
    background: linear-gradient(135deg, rgba(78, 124, 255, 0.8) 0%, rgba(78, 124, 255, 0.6) 100%);
    border-color: rgba(78, 124, 255, 1);
    box-shadow: 0 1px 4px rgba(78, 124, 255, 0.5);
}

/* Other VPs specific styling in score menu - 2 rows of 5 dots each */
.score-menu-item:nth-child(3) .score-menu-dots {
    flex-wrap: wrap;
    width: 100%;
    max-width: 120px; /* Wider to accommodate 5 dots per row */
    margin: 0 auto;
    justify-content: center;
}

.score-menu-item:nth-child(3) .score-menu-dots .dot {
    margin: 2px 2px; /* Consistent spacing */
    width: 12px;
    height: 12px;
    flex-shrink: 0; /* Prevent dots from shrinking */
}

/* Force exactly 5 dots per row by targeting specific dot positions */
.score-menu-item:nth-child(3) .score-menu-dots .dot:nth-child(6) {
    margin-left: 2px; /* Start of second row */
}

.score-menu-item:nth-child(3) .score-menu-dots .dot.active {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.8) 0%, rgba(138, 43, 226, 0.6) 100%);
    border-color: rgba(138, 43, 226, 1);
    box-shadow: 0 1px 4px rgba(138, 43, 226, 0.5);
}

/* Custodians claim button in menu */
.custodians-item {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.15) 0%, rgba(255, 140, 0, 0.05) 100%);
    border: 1px solid rgba(255, 140, 0, 0.4);
}

.custodians-claim-btn {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.4) 0%, rgba(255, 140, 0, 0.2) 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 140, 0, 0.6);
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.2);
}

.custodians-claim-btn:hover {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.6) 0%, rgba(255, 140, 0, 0.4) 100%);
    border-color: rgba(255, 140, 0, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

/* Hide controls in simplified view - ensure this applies to the main score bar */
.score-component .component-controls {
    display: none;
}

.score-component .component-value {
    display: none;
}

/* Multiple strategy cards container for 4 or fewer players */
.player-sc-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 3px;
}

.player-sc-container .player-sc {
    margin-top: 0;
    font-size: 0.8rem;
    padding: 3px 6px;
}

.player-sc-container .player-sc .sc-name {
    max-width: 80px;
    font-size: 0.75rem;
}

.player-sc-container .player-sc .sc-initiative {
    width: 16px;
    height: 16px;
    font-size: 0.7rem;
}

.player-sc-container .player-sc .sc-icon {
    font-size: 0.9rem;
}

/* Gift of Prescience Indicator Styles */
.player-sc.gift-prescience-active {
    border: 2px solid rgba(138, 43, 226, 0.8); /* Purple border for Gift of Prescience */
    box-shadow: 0 0 12px rgba(138, 43, 226, 0.6);
    /* Keep original background color, only add border and glow effect */
}

.gift-prescience-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #8a2be2, #4b0082);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    z-index: 10;
    animation: giftPresciencePulse 2s infinite ease-in-out;
}

@keyframes giftPresciencePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Gift of Prescience Score Menu Styles */
.gift-prescience-item,
.gift-prescience-active-item {
    border-top: 1px solid rgba(138, 43, 226, 0.3);
    padding-top: 15px;
    margin-top: 15px;
}

.gift-prescience-btn,
.gift-prescience-remove-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #8a2be2, #4b0082);
    border: none;
    border-radius: 6px;
    color: white;
    font-family: var(--body-font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gift-prescience-btn:hover,
.gift-prescience-remove-btn:hover {
    background: linear-gradient(135deg, #9932cc, #6a0dad);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
}

.gift-prescience-remove-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.gift-prescience-remove-btn:hover {
    background: linear-gradient(135deg, #e24d5c, #d73848);
}

.gift-prescience-description,
.gift-prescience-active-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
    line-height: 1.3;
}

.gift-prescience-active-description {
    color: #8a2be2;
    font-weight: 500;
}
