:root {
    --bg-color: #0a0a12;
    --bg-secondary: #12121f;
    --primary: #00ffff;
    --primary-glow: rgba(0, 255, 255, 0.5);
    --secondary: #ff00ff;
    --secondary-glow: rgba(255, 0, 255, 0.5);
    --accent: #ffff00;
    --accent-glow: rgba(255, 255, 0, 0.5);
    --text: #ffffff;
    --text-secondary: #aaaaaa;
    --danger: #ff3366;
    --danger-glow: rgba(255, 51, 102, 0.5);
    --card-bg: rgba(18, 18, 31, 0.7);
    --card-border: rgba(0, 255, 255, 0.2);
    --card-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    --card-winner-bg: rgba(18, 31, 18, 0.8);
    --card-winner-border: rgba(0, 255, 0, 0.3);
    --card-winner-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    --success: #00ff66;
    --success-glow: rgba(0, 255, 102, 0.5);
    --warning: #ffaa00;
    --warning-glow: rgba(255, 170, 0, 0.5);
    --error: #ff3366;
    --error-glow: rgba(255, 51, 102, 0.5);
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--bg-color);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Page Transitions */
.page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1;
    overflow-y: auto;
}

.page.active {
    opacity: 1;
    visibility: visible;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#background-canvas {
    width: 100%;
    height: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.title {
    font-size: 3rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--primary-glow);
}

.subtitle, .tagline {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.accent {
    color: var(--primary);
    position: relative;
}

/* Intro Page */
.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.logo-container {
    position: relative;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    line-height: 1;
    text-shadow: 0 0 10px var(--primary-glow);
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(20px);
    opacity: 0.5;
    z-index: 1;
    animation: pulse-glow 3s infinite ease-in-out;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 3rem;
}

/* Add Players Screen */
.add-players-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    padding: 2rem;
}

.players-list-container {
    width: 100%;
    margin-bottom: 2rem;
    max-height: 300px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid var(--card-border);
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: var(--card-bg);
    border-radius: 5px;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.player-item:hover {
    transform: translateX(5px);
    box-shadow: 0 0 10px var(--primary-glow);
}

.player-item-name {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
}

.remove-player-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.remove-player-btn:hover {
    color: var(--danger);
}

.add-player-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 1rem;
}

.player-count-message {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.player-count-message.warning {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.player-count-message.error {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

.player-count-message.success {
    background: rgba(0, 255, 102, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.navigation-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Main Game Screen */
#game-page {
    position: absolute;
    height: auto;
    min-height: 100%;
    overflow-y: visible;
    align-items: flex-start;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    padding: 2rem;
    width: 100%;
    margin: 0 auto;
    max-width: 1400px;
}

header {
    padding: 2rem 0;
    position: relative;
}

.round-indicator {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    text-align: center;
    padding: 0.5rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    border-radius: 50px;
    color: var(--accent);
    margin: 0 auto 1rem;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--accent-glow);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

footer {
    padding: 2rem 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.credits {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Scoreboard */
.scoreboard-container {
    perspective: 1000px;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
}

.scoreboard-wrapper {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.scoreboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.player-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease, transform 0.5s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.05), transparent);
    z-index: -1;
}

.player-card.winner {
    background: var(--card-winner-bg);
    border-color: var(--card-winner-border);
    box-shadow: var(--card-winner-shadow);
    transform: translateZ(20px);
}

.player-card.winner::after {
    content: 'LEADING';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    background: var(--accent);
    color: var(--bg-color);
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.player-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    text-shadow: 0 0 5px var(--primary-glow);
}

.player-score {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin: 1rem 0;
    transition: all 0.3s ease;
}

.round-scores-container {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    gap: 0.5rem;
}

.round-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
    flex: 1;
    transition: all 0.3s ease;
}

.round-score.current {
    border-color: var(--accent);
    background: rgba(255, 255, 0, 0.1);
}

.round-score.scored {
    border-color: var(--primary);
}

.round-number {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.round-score-value {
    font-weight: bold;
}

.remove-player {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.remove-player:hover {
    color: var(--danger);
}

/* Controls */
.controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.round-controls {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* Form Elements */
.neon-input, .neon-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-radius: 5px;
    padding: 0.8rem 1rem;
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.neon-input:focus, .neon-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.neon-button {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.neon-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.neon-button:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 10px var(--primary-glow);
}

.neon-button:hover::before {
    left: 100%;
}

.neon-button.large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    min-width: 200px;
}

.neon-button.secondary {
    border-color: var(--secondary);
    color: var(--secondary);
}

.neon-button.secondary:hover {
    background: rgba(255, 0, 255, 0.1);
    box-shadow: 0 0 10px var(--secondary-glow);
}

.neon-button.accent {
    border-color: var(--accent);
    color: var(--accent);
}

.neon-button.accent:hover {
    background: rgba(255, 255, 0, 0.1);
    box-shadow: 0 0 10px var(--accent-glow);
}

.neon-button.danger {
    border-color: var(--danger);
    color: var(--danger);
}

.neon-button.danger:hover {
    background: rgba(255, 51, 102, 0.1);
    box-shadow: 0 0 10px var(--danger-glow);
}

.neon-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* End Round Button Final Round State */
.neon-button.final-round {
    border-color: #FF3131;
    color: #FF3131;
    animation: pulse-final 2s infinite;
}

.neon-button.final-round:hover {
    background: rgba(255, 49, 49, 0.2);
    box-shadow: 0 0 15px rgba(255, 49, 49, 0.5);
}

@keyframes pulse-final {
    0% { box-shadow: 0 0 5px rgba(255, 49, 49, 0.5); }
    50% { box-shadow: 0 0 15px rgba(255, 49, 49, 0.5); }
    100% { box-shadow: 0 0 5px rgba(255, 49, 49, 0.5); }
}

/* Winner Modal and Final Scores */
.winner-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 18, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.winner-modal-content,
.final-scores-content {
    background: rgba(18, 18, 31, 0.95);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 2rem;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 10000;
    box-shadow: 0 0 30px var(--primary-glow);
}

.final-scores-content {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-secondary);
}

.final-scores-content::-webkit-scrollbar {
    width: 8px;
}

.final-scores-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.final-scores-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.final-scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    perspective: 1000px;
}

.final-score-card {
    position: relative;
    background: rgba(18, 18, 31, 0.9);
    border: 1px solid var(--primary);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    overflow: visible;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.final-score-card:hover {
    transform: translateZ(20px);
    box-shadow: 0 0 20px var(--primary-glow);
}

.final-score-card.winner {
    border: 2px solid var(--accent);
    background: rgba(18, 31, 18, 0.95);
    box-shadow: 0 0 30px var(--accent-glow);
}

.rank-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    background: var(--primary);
    color: var(--bg-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    z-index: 2;
    box-shadow: 0 0 10px var(--primary-glow);
}

.winner .rank-badge {
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: scale(1.1);
}

.winner-crown {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 2.5rem;
    animation: floatCrown 3s ease-in-out infinite;
    z-index: 2;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.final-player-name {
    color: var(--primary);
    font-size: 2rem;
    margin: 1rem 0;
    text-shadow: 0 0 10px var(--primary-glow);
    text-align: center;
}

.winner .final-player-name {
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
    font-size: 2.2rem;
}

.final-player-score {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--text);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    text-align: center;
    margin: 1rem 0;
}

.round-history {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-top: 1.5rem;
}

.round-history-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.round-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.round-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
}

.winner .round-value {
    color: var(--accent);
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .final-scores-content {
        padding: 1.5rem;
    }

    .final-scores-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .final-score-card {
        padding: 1.5rem;
        min-height: auto;
    }

    .final-player-name {
        font-size: 1.8rem;
    }

    .final-player-score {
        font-size: 3rem;
    }

    .round-history {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem;
        padding: 0.8rem;
    }

    .round-history-item {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .final-scores-content {
        padding: 1rem;
    }

    .rank-badge {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .winner-crown {
        font-size: 2rem;
    }

    .final-player-name {
        font-size: 1.5rem;
    }

    .final-player-score {
        font-size: 2.5rem;
    }

    .round-history {
        grid-template-columns: repeat(3, 1fr);
    }

    .round-label {
        font-size: 0.8rem;
    }

    .round-value {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 10px var(--primary-glow);
    }
    50% {
        box-shadow: 0 0 20px var(--primary-glow);
    }
    100% {
        box-shadow: 0 0 10px var(--primary-glow);
    }
}

@keyframes pulse-glow {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) translateZ(0px);
    }
    50% {
        transform: translateY(-10px) translateZ(10px);
    }
    100% {
        transform: translateY(0px) translateZ(0px);
    }
}

.score-update {
    animation: pulse 0.5s ease;
}

/* Page Transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Responsive Design */
@media (max-width: 992px) {
    .controls {
        grid-template-columns: 1fr;
    }
    
    .logo-text {
        font-size: 4rem;
    }
    
    .winner-modal-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .app-container {
        padding: 1rem;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .scoreboard {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .logo-text {
        font-size: 3rem;
    }
    
    .add-player-form {
        flex-direction: column;
    }
    
    .round-indicator {
        font-size: 1.2rem;
        padding: 0.4rem 1.2rem;
    }
    
    .winner-title {
        font-size: 2rem;
    }
    
    .winner-trophy {
        font-size: 4rem;
    }
    
    .winner-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .controls {
        padding: 1rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .neon-button, .neon-input, .neon-select {
        width: 100%;
    }
    
    .logo-text {
        font-size: 2.5rem;
    }
    
    .navigation-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .round-scores-container {
        flex-wrap: wrap;
    }
    
    .round-score {
        min-width: calc(20% - 0.5rem);
    }
    
    .winner-buttons {
        flex-direction: column;
    }
    
    .winner-modal-content {
        padding: 1.5rem;
    }
}

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

/* Round Completion Modal */
.round-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid var(--primary);
}

.round-player-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.round-player-score:hover {
    transform: translateX(10px);
}

.round-player-name {
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
}

.round-player-points {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent);
}

/* Enhanced Winner Modal */
.winner-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.winner-crown-left,
.winner-crown-right {
    font-size: 2.5rem;
    animation: floatCrown 3s ease-in-out infinite alternate;
}

.winner-crown-right {
    animation-delay: 1.5s;
}

.winner-trophy-container {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.winner-trophy {
    font-size: 5rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.winner-sparkles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    z-index: 1;
    opacity: 0.5;
    color: var(--accent);
}

.winner-info {
    text-align: center;
    margin: 2rem 0;
}

.winner-score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem 0;
}

.winner-score-label {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.winner-score {
    font-size: 4rem;
    font-weight: bold;
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

.winner-quote {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.winner-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    min-width: 120px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
}

/* Enhanced Final Scores */
.final-scores-header {
    text-align: center;
    margin-bottom: 3rem;
}

.final-scores-summary {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    color: var(--text-secondary);
}

.final-score-card {
    position: relative;
    padding: 2rem;
    border-radius: 15px;
    background: rgba(18, 18, 31, 0.95);
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.final-score-card.winner {
    border-color: var(--accent);
    background: rgba(18, 31, 18, 0.95);
}

.final-player-score-container {
    text-align: center;
    margin: 1.5rem 0;
}

.final-score-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.round-history-title {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: center;
}

.round-history-item.best-round {
    border-color: var(--accent);
    background: rgba(255, 255, 0, 0.1);
}

.round-history-item.best-round .round-value {
    color: var(--accent);
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .winner-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .winner-trophy {
        font-size: 4rem;
    }
    
    .winner-crown-left,
    .winner-crown-right {
        font-size: 2rem;
    }
    
    .winner-score {
        font-size: 3rem;
    }
    
    .round-summary {
        padding: 1rem;
    }
    
    .round-player-score {
        padding: 0.6rem;
    }
}

@media (max-width: 480px) {
    .winner-trophy {
        font-size: 3rem;
    }
    
    .winner-crown-left,
    .winner-crown-right {
        font-size: 1.5rem;
    }
    
    .winner-score {
        font-size: 2.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .round-player-name,
    .round-player-points {
        font-size: 1rem;
    }
}

/* Notifications */
.notifications-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10000;
    pointer-events: none;
}

.notification {
    background: rgba(18, 18, 31, 0.95);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4),
                0 0 15px var(--primary-glow);
    border: 1px solid var(--primary);
    pointer-events: all;
    backdrop-filter: blur(10px);
    min-width: 320px;
    transform-origin: left center;
}

.notification.success {
    border-color: var(--success);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4),
                0 0 15px var(--success-glow);
}

.notification.error {
    border-color: var(--error);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4),
                0 0 15px var(--error-glow);
}

.notification.warning {
    border-color: var(--warning);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4),
                0 0 15px var(--warning-glow);
}

.notification-icon {
    font-size: 1.4rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary);
}

.success .notification-icon {
    color: var(--success);
    border-color: var(--success);
}

.error .notification-icon {
    color: var(--error);
    border-color: var(--error);
}

.warning .notification-icon {
    color: var(--warning);
    border-color: var(--warning);
}

.notification-message {
    flex-grow: 1;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-close:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

@media (max-width: 480px) {
    .notifications-container {
        left: 10px;
        right: 10px;
    }

    .notification {
        min-width: unset;
        width: calc(100vw - 20px);
        padding: 12px 15px;
    }

    .notification-icon {
        width: 28px;
        height: 28px;
        font-size: 1.2rem;
    }

    .notification-close {
        width: 28px;
        height: 28px;
        font-size: 1.2rem;
    }
} 