@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #0a0a0a;
    --glass-bg: rgba(30, 20, 15, 0.8);
    --glass-border: rgba(249, 115, 22, 0.2);
    --primary: #f97316;
    --primary-hover: #ea580c;
    --accent: #dc2626;
    --text-main: #fef2f2;
    --text-muted: #a3a3a3;
    --success: #22c55e;
    --danger: #dc2626;
    --shadow: 0 8px 32px 0 rgba(249, 115, 22, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(at 0% 0%, hsla(0, 70%, 10%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(25, 80%, 20%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(0, 60%, 15%, 1) 0, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
    perspective: 1000px;
}

.view {
    display: none;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 25px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.5s ease-out forwards;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.view.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Input Styling */
input[type="text"],
input[type="number"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 10, 10, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
    background: rgba(15, 10, 10, 0.8);
}

/* Button Styling */
button {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--primary);
    color: white;
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.4);
}

button:active {
    transform: translateY(0);
}

.primary-btn {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.3);
}

.primary-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.4);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(4px);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

button.danger-btn {
    background: var(--accent);
    color: white;
}

button.danger-btn:hover {
    background: #b91c1c;
}

.info-text {
    font-size: 1rem;
    color: var(--text-muted);
}

.highlight {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.3rem;
    background: rgba(249, 115, 22, 0.1);
    padding: 8px;
    border-radius: 12px;
    margin: 5px 0;
    cursor: pointer;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    margin: 10px 0;
    cursor: pointer;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.hidden {
    display: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.winner-highlight {
    animation: pulse 2s infinite;
    color: var(--success);
}

/* Custom Select Styling */
select {
    width: 100%;
    padding: 16px;
    background-color: rgba(15, 10, 10, 0.8);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}

select option {
    background-color: #0a0a0a;
    color: white;
}

/* Discord Integration Styles */
.discord-section {
    margin-bottom: 20px;
    text-align: center;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #5865F2;
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.discord-btn:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
}

.discord-btn svg {
    width: 24px;
    height: 24px;
}

.discord-user-card {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    background: rgba(88, 101, 242, 0.15);
    border: 2px solid rgba(88, 101, 242, 0.4);
    border-radius: 50px;
    min-width: 200px;
}

.discord-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #5865F2;
    object-fit: cover;
}

.discord-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.discord-username {
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
}

.discord-logout-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 2px 0;
    cursor: pointer;
    width: auto;
    box-shadow: none;
    text-decoration: underline;
}

.discord-logout-btn:hover {
    color: var(--accent);
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* Voting Status Styles */
.voting-status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--danger);
    box-shadow: 0 0 5px var(--danger);
    transition: all 0.3s ease;
}

.status-dot.voted {
    background-color: var(--success);
    box-shadow: 0 0 5px var(--success);
}

/* Footer Styling */
.copyright-footer {
    position: fixed;
    bottom: 10px;
    right: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.6;
    pointer-events: none;
    font-weight: 300;
    letter-spacing: 0.5px;
    z-index: 1000;
}

/* Landing Page Layout */
.landing-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

@media (min-width: 768px) {
    .landing-actions {
        flex-direction: row;
        align-items: stretch;
    }
}

.action-card {
    background: rgba(249, 115, 22, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s, box-shadow 0.3s;
}

.action-card:hover {
    background: rgba(249, 115, 22, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.1);
}

.divider-vertical {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    position: relative;
}

@media (min-width: 768px) {
    .divider-vertical::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 1px;
        background: var(--glass-border);
        z-index: 0;
    }

    .divider-vertical span {
        background: var(--bg-color);
        padding: 5px;
        z-index: 1;
    }
}

/* Input Group for Paste Button */
.input-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.input-group input {
    flex: 1;
    min-width: 0;
}

/* Clickable Lobby Code */
#lobby-code {
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    position: relative;
}

#lobby-code:hover {
    color: var(--accent);
    transform: scale(1.05);
}

#lobby-code:active {
    transform: scale(0.95);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: white;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5000;
}

.toast.show {
    opacity: 1;
}

/* Role Reveal Overlay & Card Animation */
#role-reveal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 24px;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.5s;
}

#role-reveal-overlay.slide-out {
    transform: translateY(120%);
    opacity: 0;
}

.perspective-container {
    perspective: 1000px;
    width: 300px;
    height: 400px;
}

.card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.card.flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.card-front {
    background: linear-gradient(135deg, #1a0a0a 0%, #0a0a0a 100%);
}

.card-back {
    background: linear-gradient(135deg, #1a0a0a 0%, #0a0a0a 100%);
    transform: rotateY(180deg);
}

.question-mark {
    font-size: 8rem;
    font-weight: 700;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.5));
}

/* Player List */
.player-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    border: none;
}

.player-card {
    background: rgba(249, 115, 22, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s, background 0.2s;
    position: relative;
    overflow: hidden;
}

.player-card:hover {
    background: rgba(249, 115, 22, 0.1);
    transform: translateY(-2px);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Discord avatar image in lobby */
.avatar.avatar-img {
    object-fit: cover;
    border: 2px solid #5865F2;
    background: #5865F2;
}

.player-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.player-name {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 2px;
}

.host-badge {
    background: rgba(249, 115, 22, 0.2);
    color: var(--primary);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.you-badge {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.kick-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    box-shadow: none;
}

.kick-btn:hover {
    background: rgba(220, 38, 38, 0.2);
    color: var(--danger);
    transform: none;
    box-shadow: none;
}

/* Revolver Game Mode Selector */
.revolver-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    perspective: 1000px;
    height: 250px;
    justify-content: center;
}

.revolver-container {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.cylinder {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chamber {
    position: absolute;
    width: 70px;
    height: 70px;
    background: rgba(15, 10, 10, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    transition: all 0.6s ease;
    opacity: 0.1;
    filter: blur(2px);
    cursor: pointer;
}

/* Chamber Positions */
.chamber:nth-child(1) {
    transform: rotate(0deg) translate(90px) rotate(0deg);
}

.chamber:nth-child(2) {
    transform: rotate(60deg) translate(90px) rotate(-60deg);
}

.chamber:nth-child(3) {
    transform: rotate(120deg) translate(90px) rotate(-120deg);
}

.chamber:nth-child(4) {
    transform: rotate(180deg) translate(90px) rotate(-180deg);
}

.chamber:nth-child(5) {
    transform: rotate(240deg) translate(90px) rotate(-240deg);
}

.chamber:nth-child(6) {
    transform: rotate(300deg) translate(90px) rotate(-300deg);
}

/* Active Chamber */
.chamber.active {
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.6);
    background: rgba(249, 115, 22, 0.3);
    opacity: 1;
    filter: blur(0);
    transform: rotate(var(--r)) translate(90px) rotate(calc(var(--r) * -1)) scale(1.2);
    z-index: 10;
}

.chamber.neighbor {
    opacity: 0.4;
    filter: blur(1px);
    border-color: rgba(255, 255, 255, 0.2);
}

.selector-arrow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
    pointer-events: none;
    display: none;
}

/* Settings */
.settings-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

/* Toggle Group */
.toggle-group {
    display: flex;
    gap: 5px;
}

.toggle-group input[type="radio"] {
    display: none;
}

.toggle-group label {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-group input[type="radio"]:checked+label {
    background: var(--primary);
    border-color: var(--primary);
}

/* Role Selection Groups */
.role-selection-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.role-selection-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Player Mode Info (for non-hosts) */
.player-mode-info {
    width: 100%;
    margin: 20px 0;
    text-align: center;
}

.mode-display-card {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    background: rgba(249, 115, 22, 0.1);
    border: 2px solid rgba(249, 115, 22, 0.3);
    border-radius: 16px;
}

.mode-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.mode-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

/* Mini-Game Container */
.minigame-container {
    width: 100%;
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.minigame-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.minigame-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.minigame-timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

/* Click Race Mini-Game */
.click-race-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.click-btn {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
}

.click-btn:active {
    transform: scale(0.95);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.3);
}

.click-score {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

/* Mini-Game Leaderboard */
.minigame-leaderboard {
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid var(--glass-border);
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-rank {
    font-weight: 700;
    color: var(--primary);
    width: 30px;
}

.leaderboard-name {
    flex: 1;
    color: white;
}

.leaderboard-score {
    font-weight: 700;
    color: var(--accent);
}

/* Minigame Waiting State */
.minigame-waiting {
    text-align: center;
    padding: 30px;
}

.minigame-waiting p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.primary-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(249, 115, 22, 0.4);
}

.secondary-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
}

.secondary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Results */
.results-message {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
}

#minigame-results {
    text-align: center;
    padding: 20px;
}

/* Minigame Timer Display */
.minigame-timer-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 15px;
}

/* ===== TYPING GAME ===== */
.typing-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.typing-word {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    padding: 15px 30px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 12px;
    letter-spacing: 2px;
}

.typing-input {
    width: 100%;
    max-width: 300px;
    padding: 15px;
    font-size: 1.2rem;
    text-align: center;
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.typing-input:focus {
    outline: none;
    border-color: var(--primary);
}

.typing-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== REACTION GAME ===== */
.reaction-area {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.reaction-area.waiting {
    background: rgba(239, 68, 68, 0.3);
}

.reaction-area.ready {
    background: rgba(34, 197, 94, 0.5);
    animation: pulse 0.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.reaction-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

/* ===== MATH GAME ===== */
.math-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.math-equation {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    font-family: monospace;
}

.math-input {
    width: 150px;
    padding: 15px;
    font-size: 1.5rem;
    text-align: center;
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.math-input:focus {
    outline: none;
    border-color: var(--primary);
}

.math-input.shake {
    animation: shake 0.5s;
    border-color: #ef4444;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

/* ===== MEMORY GAME ===== */
.memory-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.memory-level {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.memory-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.memory-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.7;
}

.memory-btn:hover {
    transform: scale(1.1);
    opacity: 1;
}

.memory-btn.flash {
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 0 20px currentColor;
}

.memory-btn.pressed {
    transform: scale(0.9);
}

.memory-status {
    font-size: 1rem;
    color: var(--text-muted);
}

/* ============================================
   HOST PANEL STYLES
   ============================================ */
.host-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: rgba(15, 10, 10, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.host-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
    font-weight: 600;
    color: var(--primary);
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.icon-btn.collapsed {
    transform: rotate(-90deg);
}

.host-panel-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.host-panel-content.collapsed {
    display: none;
}

.host-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 12px;
}

.host-section h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.effects-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.effect-btn {
    width: 45px;
    height: 45px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s;
}

.effect-btn:hover {
    background: rgba(249, 115, 22, 0.2);
    border-color: var(--primary);
    transform: scale(1.1);
}

.effect-btn:active {
    transform: scale(0.95);
}

.hint-select {
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.9rem;
}

.hint-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.9rem;
}

.hint-input::placeholder {
    color: var(--text-muted);
}

.primary-btn.small {
    padding: 8px 16px;
    font-size: 0.85rem;
    width: 100%;
}

.danger-btn {
    width: 100%;
    padding: 10px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #ef4444;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.danger-btn:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* Special Effects Animations */
@keyframes screenShake {

    0%,
    100% {
        transform: translateX(0);
    }

    10% {
        transform: translateX(-10px) rotate(-1deg);
    }

    20% {
        transform: translateX(10px) rotate(1deg);
    }

    30% {
        transform: translateX(-10px) rotate(-1deg);
    }

    40% {
        transform: translateX(10px) rotate(1deg);
    }

    50% {
        transform: translateX(-5px);
    }

    60% {
        transform: translateX(5px);
    }

    70% {
        transform: translateX(-5px);
    }

    80% {
        transform: translateX(5px);
    }

    90% {
        transform: translateX(-2px);
    }
}

.shake-effect {
    animation: screenShake 0.8s ease-out;
}

.suspense-effect {
    animation: suspense 3s ease-out;
}

@keyframes suspense {
    0% {
        filter: brightness(1);
    }

    30% {
        filter: brightness(0.3);
    }

    70% {
        filter: brightness(0.3);
    }

    100% {
        filter: brightness(1);
    }
}

/* Notification for hints */
.hint-notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(249, 115, 22, 0.95);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 600;
    z-index: 3000;
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.4);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Confetti container */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2500;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Chat Styles */
#chat-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 350px;
    max-height: 300px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    pointer-events: none;
    transition: opacity 0.5s ease;
    opacity: 0.3;
}

#chat-container.active,
#chat-container.typing {
    opacity: 1;
}

#chat-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: hidden;
    max-height: 250px;
    mask-image: linear-gradient(to top, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 80%, transparent 100%);
}

.chat-message {
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 12px;
    border-radius: 8px;
    color: #eee;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    animation: slideInLeft 0.3s ease;
    word-wrap: break-word;
    max-width: 100%;
}

.chat-author {
    font-weight: 700;
    color: var(--primary);
    margin-right: 6px;
}

#chat-input {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    outline: none;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

#chat-container.typing #chat-input {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Role Card Styling */
.role-card {
    background: rgba(15, 10, 10, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.role-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Sabotażysta Role Theme */
.role-saboteur {
    background: linear-gradient(135deg, #2a0a0a 0%, #0a0a0a 100%);
    border-color: rgba(220, 38, 38, 0.3);
}

.role-saboteur .role-title {
    background: linear-gradient(to right, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mystery / Unaware Theme */
.role-mystery {
    background: linear-gradient(135deg, #2a1a0a 0%, #0a0a0a 100%);
    border-color: rgba(249, 115, 22, 0.3);
}

.role-mystery .role-title {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: mysteryPulse 3s infinite;
}

/* Jester Role Theme */
.role-jester {
    background: linear-gradient(135deg, #2e1065 0%, #0a0a0a 100%);
    border-color: rgba(168, 85, 247, 0.3);
}

.role-jester .role-title {
    color: #d946ef;
}

/* Host Observer View */
.host-view {
    background: linear-gradient(135deg, #1a1500 0%, #0a0a0a 100%) !important;
    border: 2px solid #fbbf24 !important;
}

.host-info-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.host-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--glass-border);
}

.host-info-item .label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.host-info-item .value {
    font-weight: 700;
    font-size: 1rem;
}

@keyframes mysteryPulse {

    0%,
    100% {
        opacity: 1;
        filter: blur(0px);
    }

    50% {
        opacity: 0.8;
        filter: blur(1px);
    }
}

/* Speaking Queue */
#speaking-section {
    background: rgba(15, 10, 10, 0.6) !important;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px !important;
    position: relative;
}

.speaker-active {
    color: var(--success);
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
    animation: pulse 2s infinite;
}

/* Voting Grid */
.voting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.vote-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.vote-card:hover {
    background: rgba(249, 115, 22, 0.1);
    transform: translateY(-3px);
    border-color: var(--primary);
}

.vote-card.selected {
    background: rgba(249, 115, 22, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

.vote-card .avatar {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
}

.vote-card .name {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

/* Game Over View */
#game-over-view {
    text-align: center;
    padding: 40px 20px;
}

#game-over-view h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#winner-display {
    font-size: 1.5rem;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

#spy-results {
    max-width: 500px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-out;
}

.result-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.result-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.result-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.result-value:last-child {
    margin-bottom: 0;
}

#voting-results p {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
}

#voting-results p:last-child {
    border-bottom: none;
}

/* Host Controls */
.host-observation {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
}

.host-observation h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* Range Input Styling */
input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .view {
        padding: 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .player-list {
        grid-template-columns: 1fr;
    }

    #chat-container {
        width: calc(100% - 40px);
        left: 20px;
    }
}

/* ============================================
   UNO GAME STYLES
   ============================================ */

/* UNO Game Container */
#uno-game-container {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Game Table - Wooden/Felt texture */
.uno-table {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px;
    background:
        radial-gradient(ellipse at center, #1a472a 0%, #0d2818 70%, #061510 100%);
    border-radius: 50% / 30%;
    box-shadow:
        0 0 0 15px #2d1810,
        0 0 0 20px #1a0f0a,
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 0 100px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
}

/* Table felt texture overlay */
.uno-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    border-radius: inherit;
    pointer-events: none;
}

/* Center area with deck and discard */
.uno-table-center {
    position: relative;
    display: flex;
    gap: 30px;
    align-items: center;
    z-index: 10;
}

/* UNO Card Base */
.uno-card {
    width: 80px;
    height: 120px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 2rem;
    color: white;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

/* Card inner oval */
.uno-card::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 75%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: rotate(-30deg);
}

/* Card colors */
.uno-card.red {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

.uno-card.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.uno-card.green {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
}

.uno-card.yellow {
    background: linear-gradient(135deg, #eab308 0%, #a16207 100%);
    color: #1a1a1a;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.uno-card.black {
    background: linear-gradient(135deg, #374151 0%, #111827 100%);
}

/* Card corners */
.uno-card .corner-tl,
.uno-card .corner-br {
    position: absolute;
    font-size: 0.9rem;
    font-weight: 700;
}

.uno-card .corner-tl {
    top: 5px;
    left: 8px;
}

.uno-card .corner-br {
    bottom: 5px;
    right: 8px;
    transform: rotate(180deg);
}

/* Card hover effect */
.uno-card:hover:not(.disabled) {
    transform: translateY(-15px) scale(1.05);
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(249, 115, 22, 0.3);
    z-index: 100;
}

.uno-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.3);
}

/* Deck pile */
.uno-deck-pile {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    font-size: 1.2rem;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.3),
        5px 5px 0 #7f1d1d,
        10px 10px 0 #5c1414,
        15px 15px 0 #3b0d0d;
}

.uno-deck-pile:hover {
    transform: translateY(-5px);
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.4),
        5px 5px 0 #7f1d1d,
        10px 10px 0 #5c1414,
        15px 15px 0 #3b0d0d;
}

/* Discard pile */
.uno-discard-pile {
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 255, 255, 0.1);
}

/* Current color indicator */
.uno-color-indicator {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 15px currentColor, 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

/* Player hand */
.uno-hand {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: -20px;
    padding: 20px;
    z-index: 50;
    max-width: 90vw;
    overflow-x: auto;
}

.uno-hand .uno-card {
    margin-left: -20px;
    transition: transform 0.2s ease, margin 0.2s ease;
}

.uno-hand .uno-card:first-child {
    margin-left: 0;
}

.uno-hand .uno-card:hover:not(.disabled) {
    margin-left: 10px;
    margin-right: 10px;
}

/* Opponent seats around table */
.opponent-seat {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    z-index: 5;
}

.opponent-seat .avatar {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.opponent-seat.active-turn .avatar {
    box-shadow:
        0 0 0 4px var(--primary),
        0 0 20px var(--primary);
    animation: turnPulse 1.5s infinite;
}

@keyframes turnPulse {

    0%,
    100% {
        box-shadow: 0 0 0 4px var(--primary), 0 0 20px var(--primary);
    }

    50% {
        box-shadow: 0 0 0 8px var(--primary), 0 0 30px var(--primary);
    }
}

.opponent-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Card fan for opponents */
.card-fan {
    display: flex;
    position: relative;
    height: 50px;
}

.mini-card {
    width: 30px;
    height: 45px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: absolute;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.card-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* UNO Controls */
.uno-controls {
    position: fixed;
    bottom: 160px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 60;
}

.uno-controls button {
    padding: 12px 25px;
    font-size: 1rem;
    width: auto;
}

#uno-draw-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

#uno-say-uno-btn {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    animation: unoPulse 0.8s infinite;
}

@keyframes unoPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Color Picker Modal */
.color-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    animation: fadeIn 0.3s ease;
}

.color-picker-modal {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.color-picker-modal h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.color-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.color-option {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    border: 4px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.color-option:hover {
    transform: scale(1.1);
    border-color: white;
}

.color-option.red {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

.color-option.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.color-option.green {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
}

.color-option.yellow {
    background: linear-gradient(135deg, #eab308 0%, #a16207 100%);
}

/* Turn indicator */
.turn-indicator {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 600;
    color: white;
    z-index: 100;
}

.turn-indicator.my-turn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    animation: myTurnGlow 1s infinite alternate;
}

@keyframes myTurnGlow {
    from {
        box-shadow: 0 0 10px var(--primary);
    }

    to {
        box-shadow: 0 0 30px var(--primary);
    }
}

/* Card animations */
@keyframes cardDeal {
    from {
        transform: translateY(-200px) rotate(180deg) scale(0.5);
        opacity: 0;
    }

    to {
        transform: translateY(0) rotate(0) scale(1);
        opacity: 1;
    }
}

@keyframes cardPlay {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2) translateY(-50px);
    }

    100% {
        transform: scale(0.8) translateY(-100px);
        opacity: 0;
    }
}

@keyframes cardDraw {
    from {
        transform: translateX(-100px) translateY(-50px) rotate(-20deg);
        opacity: 0;
    }

    to {
        transform: translateX(0) translateY(0) rotate(0);
        opacity: 1;
    }
}

.card-dealing {
    animation: cardDeal 0.5s ease-out forwards;
}

.card-playing {
    animation: cardPlay 0.4s ease-out forwards;
}

.card-drawing {
    animation: cardDraw 0.4s ease-out forwards;
}

/* Flying card for animations */
.flying-card {
    position: fixed;
    width: 80px;
    height: 120px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border-radius: 12px;
    z-index: 5000;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Direction indicator */
.direction-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border: 3px dashed rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    pointer-events: none;
}

.direction-arrow {
    position: absolute;
    width: 30px;
    height: 30px;
    fill: rgba(255, 255, 255, 0.3);
}

/* Special card effects */
.uno-card[data-value="+2"]::after,
.uno-card[data-value="+4"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: specialGlow 2s infinite;
}

@keyframes specialGlow {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

/* Game info bar */
.uno-game-info {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.85rem;
    z-index: 100;
}

.uno-game-info .deck-count {
    color: var(--text-muted);
}

.uno-game-info .deck-count span {
    color: var(--primary);
    font-weight: 700;
}

/* UNO call notification */
.uno-call {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    font-weight: 900;
    color: #dc2626;
    text-shadow:
        0 0 20px #dc2626,
        0 0 40px #dc2626,
        4px 4px 0 #991b1b;
    z-index: 4000;
    animation: unoCall 1s ease-out forwards;
    pointer-events: none;
}

@keyframes unoCall {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-20deg);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3) rotate(5deg);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0);
        opacity: 0;
    }
}