/* Splash screen */
#splash-screen {
    background-color: #000;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}
#splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-container {
    position: relative;
    max-width: 100%;
    max-height: 100vh;
    overflow: hidden;
    cursor: pointer;
}

.splash-image {
    width: 100%;
    height: auto;
    max-height: 100vh;
    object-fit: contain;
    display: block;
}

.splash-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    text-align: center;
}

.splash-text p {
    color: white;
    font-size: 1.5rem;
    font-weight: 300;
}

/* Startup screen */
.main-menu { /* Extends .glass-panel */
    text-align: center;
    padding: 60px 80px;
    max-width: 500px;
}

.game-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.title-icon {
    font-size: 3rem;
    animation: pulse 2s ease-in-out infinite;
}

.title-icon:first-child {
    color: #ff6b6b;
    animation-delay: 0.5s;
}

.title-icon:last-child {
    color: #4ecdc4;
    animation-delay: 1s;
}

.game-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-weight: 300;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Scoring screen */
.scoring-panel { /* Extends .glass-panel */
    padding: 40px;
    max-width: 600px;
    text-align: center;
}

.scoring-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hand-result {
    margin-bottom: 30px;
}

.played-cards {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.played-cards .card { /* Uses .card styles from components.css */
    animation: cardReveal 0.5s ease forwards;
    opacity: 0;
    transform: scale(0.8);
}

.played-cards .card:nth-child(1) { animation-delay: 0.1s; }
.played-cards .card:nth-child(2) { animation-delay: 0.2s; }
.played-cards .card:nth-child(3) { animation-delay: 0.3s; }
.played-cards .card:nth-child(4) { animation-delay: 0.4s; }
.played-cards .card:nth-child(5) { animation-delay: 0.5s; }

.result-details {
    text-align: center;
}

.hand-type {
    font-size: 2rem;
    font-weight: 700;
    color: #00e5ff; /* New accent colour */
    margin-bottom: 10px;
    text-shadow: 0 2px 15px rgba(0, 229, 255, 0.5); /* Adjusted shadow for new color */
}

.hand-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.score-breakdown {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.score-item:last-child {
    border-bottom: none;
}

.score-item.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4facfe;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    margin-top: 10px;
}

.score-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.score-value {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.score-item#round-bonus-item .score-value {
    color: #2ecc71; 
    font-weight: bold;
}

.score-item#round-bonus-item .score-label {
    color: #bdc3c7; 
}

.score-item.card-bonus-item .score-label {
    color: #a29bfe; 
}

.score-item.card-bonus-item .score-value {
    color: #dff9fb; 
    font-size: 0.95rem; 
}

/* Victory screen */
.victory-panel { /* Extends .glass-panel */
    padding: 50px;
    max-width: 500px;
    text-align: center;
}

.victory-title {
    font-size: 3rem;
    font-weight: 700;
    color: #00e5ff; /* New accent colour */
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 229, 255, 0.5); /* Adjusted shadow */
    animation: victoryPulse 2s ease-in-out infinite;
}

.victory-message {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.5;
}

.final-score { 
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.final-score-label { 
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.final-score-value { 
    font-size: 2rem;
    color: #4facfe;
    font-weight: 700;
    text-shadow: 0 2px 15px rgba(79, 172, 254, 0.5);
}

.victory-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Game over screen */
.game-over-panel { /* Extends .glass-panel */
    padding: 50px;
    max-width: 500px;
    text-align: center;
}

.game-over-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f5576c;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(245, 87, 108, 0.5);
}

.game-over-message {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.5;
}

.name-input-section { 
    margin-bottom: 30px;
}

.name-input-section label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    margin-bottom: 10px;
}

.name-input { 
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.name-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.name-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.game-over-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Highscores screen */
.highscores-panel { /* Extends .glass-panel */
    padding: 40px;
    max-width: 600px;
    text-align: center;
}

.highscores-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.highscores-list {
    margin-bottom: 30px;
}

.highscore-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.highscore-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.highscore-rank {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00e5ff; /* New accent colour */
}

.highscore-name {
    flex: 1;
    color: white;
    font-weight: 600;
    text-align: left;
    margin-left: 20px;
}

.highscore-score {
    color: #4facfe; 
    font-weight: 700;
    font-size: 1.1rem;
}

/* Shop Screen Styles */
.shop-panel { /* Extends .glass-panel */
    padding: 40px;
    max-width: 800px;
    text-align: center;
}

.shop-header {
    margin-bottom: 30px;
}

.shop-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.shop-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.shop-money {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.money-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-right: 10px;
}

.money-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2ecc71;
    text-shadow: 0 2px 10px rgba(46, 204, 113, 0.5);
}

.shop-cards-container {
    margin-bottom: 30px;
}

.shop-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.shop-card { 
    position: relative;
    width: 120px;
    height: 168px;
    background: white;
    border-radius: 12px;
    border: 2px solid #ddd; /* Match regular card border thickness */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 8px 6px; /* Adjust padding similar to .card */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    user-select: none;
}
/* Apply suit colors to shop cards as well */
.shop-card.hearts .card-rank, .shop-card.hearts .card-suit { color: #e74c3c; }
.shop-card.diamonds .card-rank, .shop-card.diamonds .card-suit { color: #3498db; }
.shop-card.clubs .card-rank, .shop-card.clubs .card-suit { color: #2ecc71; }
.shop-card.spades .card-rank, .shop-card.spades .card-suit { color: #000000; }

.shop-card.turbo {
    width: 100px; /* Square dimension */
    height: 100px; /* Square dimension */
    justify-content: center; /* Center icon vertically */
    padding: 10px;
}

.shop-card.turbo .card-rank { /* This holds the icon */
    font-size: 2.8rem; /* Larger icon */
    color: #f093fb; /* Turbo chip color */
}
.shop-card.turbo .card-suit { /* This holds the name, hide it */
    display: none;
}

.shop-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.6);
    border-color: #667eea;
}

.shop-card .card-rank { 
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

.shop-card .card-suit {
    font-size: 2.2rem;
    line-height: 1;
}

.shop-card .card-price {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #2ecc71;
    color: white;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Specific style for shop card effect icon, already in components.css */
/* .shop-card .card-effect-icon { font-size: 1.1rem; } */

.shop-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.shop-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.info-icon {
    font-size: 1.3rem;
}

.shop-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.shop-card.sold {
    opacity: 0.5;
    transform: scale(0.9);
    cursor: not-allowed;
}

.shop-card.sold:hover {
    transform: scale(0.9);
    border-color: #ddd;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Shop deck info positioning */
.shop-deck-info {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.shop-deck-info .deck-panel {
    padding: 15px 20px;
}

/* Boss Selection Screen */
.boss-selection-panel { /* Extends .glass-panel */
    padding: 40px;
    max-width: 900px;
    text-align: center;
}

.boss-selection-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.boss-selection-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.boss-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.boss-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.boss-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #f5576c;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.3);
}

.boss-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.boss-emoji {
    font-size: 2.5rem;
    margin-right: 15px;
}

.boss-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f5576c;
    margin: 0;
}

.boss-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
}

.boss-selection-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}
