* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    min-height: 100vh;
    color: #000;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Welcome Screen */
#welcome-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    text-align: center;
}

.hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.hero-buttons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
}

.btn-hero {
    font-size: 1.3em;
    padding: 20px 40px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    background: rgba(255, 215, 0, 0.95) !important;
    border: 4px solid #000;
}

.btn-hero:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 24px rgba(0,0,0,0.9);
}

.btn-secondary.btn-hero {
    background: rgba(0, 0, 0, 0.9) !important;
    color: #FFD700;
    border: 4px solid #FFD700;
}

.btn-secondary.btn-hero:hover {
    background: rgba(255, 215, 0, 0.95) !important;
    color: #000;
    border: 4px solid #000;
}

.welcome-text {
    max-width: 800px;
    margin: 0 auto;
}

.welcome-text p {
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 600;
    color: #000;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.3);
}

/* Game Screen */
#game-screen {
    display: none;
}

#game-header {
    text-align: center;
    margin-bottom: 30px;
    background: #000;
    color: #FFD700;
    padding: 20px;
    border-radius: 10px;
}

#game-header h2 {
    margin-bottom: 10px;
}

#game-header h3 {
    font-size: 1.2em;
    line-height: 1.6;
    margin-top: 10px;
    font-weight: normal;
}

#game-header h3 strong {
    font-weight: bold;
    color: #FFD700;
}

/* Game Area */
#game-area {
    display: grid;
    gap: 20px;
}

/* Trait Card */
#trait-section {
    text-align: center;
    background: none !important;
    padding: 0;
    border: none !important;
    box-shadow: none !important;
}

#trait-card {
    display: inline-block;
    text-align: center;
    max-width: 600px;
    background: none !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0;
}

#trait-card img {
    display: block;
    width: 300px;
    height: auto;
    border: none;
    box-shadow: none;
    background: none;
    margin: 0 auto;
}

.trait-description {
    margin-top: 15px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #FFD700;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 0.95em;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* Anchor Card */
#anchor-section {
    text-align: center;
    margin: 30px 0;
}

#anchor-section h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.card {
    position: relative;
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

#anchor-card {
    width: 300px;
}

#anchor-card img {
    width: 100%;
    height: auto;
    display: block;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.85);
    color: #FFD700;
    padding: 8px 10px;
    font-size: 0.9em;
}

/* Info box displayed BELOW the anchor card (not overlaying) */
.card-info-below {
    margin-top: 10px;
    padding: 12px 15px;
    background: rgba(0,0,0,0.85);
    color: #FFD700;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #FFD700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.card-name {
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 3px;
}

.card-score {
    font-size: 1.2em;
    margin-top: 2px;
}

/* Player Hand */
#player-section {
    margin-top: 40px;
}

#player-section h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5em;
}

#player-hand {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

#player-hand .card {
    width: 180px;
    cursor: pointer;
}

#player-hand .card img {
    width: 100%;
    height: auto;
    display: block;
}

#player-hand .card.clickable:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

#player-hand .card.selected {
    border: 4px solid #00FF00;
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 0 20px rgba(0,255,0,0.6);
}

/* Client Card - Golden selection frame */
#player-hand .card.client-card.selected {
    border: 4px solid #FFD700;
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.4);
    animation: golden-pulse 1.5s ease-in-out infinite;
}

@keyframes golden-pulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 1), 0 0 80px rgba(255, 215, 0, 0.6);
    }
}

/* Client Card hover effect */
#player-hand .card.client-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.5);
}

/* Client Card star badge */
.client-card-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #FFD700;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 10;
}

/* Buttons */
.btn {
    background: #FFD700;
    color: #000;
    border: 3px solid #000;
    padding: 15px 40px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    margin: 10px;
}

.btn:hover {
    background: #000;
    color: #FFD700;
    transform: scale(1.05);
}

#confirm-btn {
    display: none;
    text-align: center;
    margin: 30px auto;
}

/* Results */
#results-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.results-modal {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    max-width: 1000px;
    margin: 50px auto;
    padding: 40px;
    border-radius: 20px;
    border: 5px solid #000;
    text-align: center;
}

.results-modal h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.results-modal h3 {
    font-size: 1.8em;
    margin-bottom: 30px;
}

.anchor-result {
    font-size: 1.3em;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

.player-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.player-result {
    background: rgba(255,255,255,0.3);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #000;
}

.player-result.winner {
    background: #FFD700;
    border: 5px solid #000;
    transform: scale(1.05);
}

.result-card {
    width: 150px;
    height: auto;
    border-radius: 10px;
    margin: 10px auto;
    display: block;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.winner-announcement {
    font-size: 2em;
    font-weight: bold;
    margin: 30px 0;
    padding: 20px;
    background: #000;
    color: #FFD700;
    border-radius: 10px;
}

.final-results .final-scores {
    font-size: 1.4em;
    margin: 30px 0;
}

.final-results .final-scores > div {
    padding: 15px;
    margin: 10px 0;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
}

.final-results .final-scores .winner {
    background: #FFD700;
    border: 4px solid #000;
    transform: scale(1.05);
}

.achievement {
    font-size: 2em;
    margin: 20px 0;
    padding: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

/* Collection Areas */
#ai-collections-section {
    margin: 20px 0;
    text-align: center;
}

#ai-collections-section h3 {
    margin-bottom: 20px;
    font-size: 1.5em;
}

.ai-player-box {
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 15px;
    border: 3px solid #000;
    min-width: 280px;
}

.ai-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #000;
    margin: 0 auto 15px;
    display: block;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.ai-collection {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
}

.collection-label {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.trait-cards-mini {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.trait-card-mini {
    width: 50px;
    height: 70px;
    border: 2px solid #000;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.trait-card-mini.collected img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trait-card-mini.silhouette {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border: 2px dashed rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trait-letter-mini {
    font-size: 1.8em;
    font-weight: bold;
    color: rgba(0,0,0,0.2);
}

/* Player Collection */
#player-collection-section {
    margin: 30px 0;
    text-align: center;
}

.trait-cards {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.trait-card {
    width: 100px;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    position: relative;
}

.trait-card.collected img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trait-card.silhouette {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border: 3px dashed rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trait-letter {
    font-size: 3em;
    font-weight: bold;
    color: rgba(0,0,0,0.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    margin: 20px auto;
    padding: 40px;
    border: 5px solid #000;
    border-radius: 20px;
    max-width: 800px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    color: #000;
    float: right;
    font-size: 40px;
    font-weight: bold;
    line-height: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover,
.modal-close:focus {
    color: #8B0000;
    transform: scale(1.2);
}

.instructions {
    text-align: left;
    line-height: 1.6;
}

.instructions h3 {
    color: #000;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 3px solid #000;
    padding-bottom: 8px;
}

.instructions h3:first-child {
    margin-top: 0;
}

.instructions p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.instructions ul, .instructions ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

.instructions li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.instructions ul ul {
    margin-top: 8px;
    margin-left: 20px;
}

.modal-close-btn {
    margin-top: 20px;
    font-size: 1.2em;
}

/* Secondary Button */
.btn-secondary {
    background: #000;
    color: #FFD700;
    border: 3px solid #FFD700;
}

.btn-secondary:hover {
    background: #FFD700;
    color: #000;
    border: 3px solid #000;
}

/* Celebration Modal */
#celebration-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.celebration-bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF6B6B, #FFD700);
    background-size: 400% 400%;
    animation: celebrationGradientShift 3s ease infinite;
    opacity: 0.3;
}

@keyframes celebrationGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.celebration-container {
    text-align: center;
    z-index: 10001;
    position: relative;
    max-width: 800px;
    padding: 40px;
}

.celebration-trophy {
    font-size: 8em;
    margin-bottom: 20px;
    animation: celebrationTrophyBounce 1s ease-in-out infinite;
    filter: drop-shadow(0 0 30px #FFD700);
}

@keyframes celebrationTrophyBounce {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.celebration-title {
    font-size: 4em;
    color: #FFD700;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: celebrationGlow 1.5s ease-in-out infinite;
}

@keyframes celebrationGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
    50% { text-shadow: 0 0 40px rgba(255, 215, 0, 1); }
}

.celebration-card-reveal {
    position: relative;
    margin: 40px auto;
    animation: celebrationZoomIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes celebrationZoomIn {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.celebration-trait-card {
    width: 350px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.9);
    border: 5px solid #FFD700;
}

.celebration-card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
    animation: celebrationPulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes celebrationPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.celebration-achievement-box {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border: 3px solid #FFD700;
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    animation: celebrationSlideInUp 0.8s ease-out 0.5s backwards;
}

@keyframes celebrationSlideInUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.celebration-trait-name {
    font-size: 2.5em;
    color: #FFD700;
    font-weight: bold;
    margin-bottom: 15px;
}

.celebration-trait-desc {
    font-size: 1.2em;
    color: #FFF;
    line-height: 1.6;
}

.celebration-stats-banner {
    background: rgba(255, 215, 0, 0.15);
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
    animation: celebrationSlideInUp 0.8s ease-out 0.8s backwards;
}

.celebration-stats-text {
    font-size: 1.8em;
    color: #FFD700;
    font-weight: bold;
}

.celebration-continue-btn {
    margin-top: 30px;
    padding: 25px 70px;
    font-size: 1.6em;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
    animation: celebrationSlideInUp 0.8s ease-out 1.1s backwards;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.celebration-continue-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.8);
}

.celebration-hint {
    margin-top: 20px;
    font-size: 1.2em;
    color: rgba(255, 215, 0, 0.7);
    animation: celebrationPulseText 2s ease-in-out infinite;
}

@keyframes celebrationPulseText {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.celebration-light-ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 200px;
    background: linear-gradient(to bottom, rgba(255, 215, 0, 0.8), transparent);
    transform-origin: top center;
    animation: celebrationRotate 4s linear infinite;
    z-index: 10000;
}

@keyframes celebrationRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Name Entry Modal */
.name-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
}

.name-modal-content {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 10px 50px rgba(255, 215, 0, 0.5);
    border: 4px solid #000;
}

.name-modal-content h2 {
    color: #000;
    font-size: 2.2em;
    margin-bottom: 20px;
}

.name-modal-content p {
    color: #000;
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: 600;
}

.name-input {
    width: 100%;
    padding: 15px;
    font-size: 1.3em;
    border: 3px solid #000;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
    background: #FFF;
}

.name-input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.5em;
    background: #000;
    color: #FFD700;
    border: 3px solid #FFD700;
    font-weight: bold;
}

.btn-large:hover {
    background: #FFD700;
    color: #000;
    border-color: #000;
}

.name-hint {
    font-size: 0.9em !important;
    color: rgba(0, 0, 0, 0.6) !important;
    margin-top: 15px !important;
    font-style: italic;
}

/* Player Greeting and Stats */
#player-greeting {
    font-size: 2em;
    color: #000;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
}

#player-stats-display {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.player-stat {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 25px;
    border-radius: 10px;
    border: 2px solid #FFD700;
}

.stat-value {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: #000;
    font-weight: 600;
    margin-top: 5px;
}

.btn-change-name {
    display: block;
    margin: 10px auto;
    padding: 10px 25px;
    background: rgba(0, 0, 0, 0.5);
    color: #FFD700;
    border: 2px solid #FFD700;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-change-name:hover {
    background: #000;
    transform: scale(1.05);
}

/* Leaderboard Panel */
#leaderboard-panel {
    max-width: 700px;
    margin: 40px auto;
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid #FFD700;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.leaderboard-title {
    text-align: center;
    font-size: 2em;
    color: #FFD700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

#leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s;
}

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

.leaderboard-item.current-player {
    background: rgba(255, 215, 0, 0.3);
    border: 2px solid #FFD700;
}

.leaderboard-rank {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFD700;
    min-width: 40px;
    text-align: center;
}

.leaderboard-name {
    flex: 1;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFF;
}

.leaderboard-stats {
    font-size: 1.1em;
    color: #FFD700;
    font-weight: bold;
}

.leaderboard-games {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

.leaderboard-empty {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1em;
    font-style: italic;
}

/* Language Toggle Button */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 10000;
    min-width: 80px;
    text-align: center;
}

.language-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.language-toggle:active {
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
    #player-hand .card {
        width: 140px;
    }
    
    #anchor-card {
        width: 220px;
    }
    
    .results-modal {
        padding: 20px;
    }
    
    .player-results {
        grid-template-columns: 1fr;
    }
    
    .trait-card {
        width: 80px;
        height: 112px;
    }
    
    .modal-content {
        padding: 25px;
        margin: 10px;
    }
    
    .instructions h3 {
        font-size: 1.3em;
    }
    
    .instructions p, .instructions li {
        font-size: 1em;
    }
    
    /* Hero section responsive */
    .hero-buttons {
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        padding: 20px;
    }
    
    .btn-hero {
        font-size: 1.1em;
        padding: 15px 30px;
        width: 80%;
        max-width: 250px;
    }
    
    .hero-image {
        border-radius: 10px;
    }
    
    .welcome-text p {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
}

/* ===== SPECIAL CARDS STYLING ===== */

/* Gold border for special cards */
.card.special-card {
    border: 4px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 4px 12px rgba(0,0,0,0.3);
    animation: specialGlow 2s ease-in-out infinite;
}

.card.special-card:hover {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 6px 16px rgba(0,0,0,0.4);
    transform: translateY(-8px) scale(1.05);
}

/* Special card badge */
.special-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Special card glow animation */
@keyframes specialGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 4px 12px rgba(0,0,0,0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.9), 0 4px 12px rgba(0,0,0,0.3);
    }
}

/* Modal overlay for special cards */
.modal-overlay {
    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;
    animation: fadeIn 0.3s ease;
}

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

/* Steal and block button hover effects */
.steal-letter-btn:hover,
.block-ai-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255,215,0,0.6) !important;
}

/* Animation for steal and block */
@keyframes stealPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

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

/* Blocked AI indicator */
.ai-blocked {
    opacity: 0.5;
    position: relative;
}

.ai-blocked::after {
    content: '🚫 BLOCKED';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.2em;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

@media (max-width: 480px) {
    .hero-buttons {
        padding: 15px;
    }
    
    .btn-hero {
        font-size: 1em;
        padding: 12px 25px;
        width: 90%;
    }
    
    .welcome-text p {
        font-size: 1em;
    }
}

/* Footer Logo */
.game-footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-logo {
    max-width: 400px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
    border-radius: 10px;
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .footer-logo {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .footer-logo {
        max-width: 240px;
    }
    
    .game-footer {
        padding: 30px 20px;
        margin-top: 40px;
    }
}
