/* ===================================
   🎄 GİZLİ NOEL ÇEKİLİŞİ - MODERN THEME
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffd700;
    --primary-glow: rgba(255, 215, 0, 0.4);
    --secondary-color: #ff6b6b;
    --success-color: #51cf66;
    --danger-color: #ff6b6b;
    --christmas-red: #c41e3a;
    --christmas-green: #228b22;
    --dark-bg: #0a0a1a;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
}

/* ===================================
   BACKGROUND WITH DECORATIONS
   =================================== */

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Winter Night Sky Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top, #1a1a3e 0%, #0a0a1a 50%),
        linear-gradient(to bottom, #0a0a1a 0%, #1a0a2e 100%);
    z-index: -3;
}

/* Northern Lights Effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(0, 255, 127, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 0%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 0%, rgba(0, 191, 255, 0.1) 0%, transparent 60%);
    z-index: -2;
    animation: aurora 8s ease-in-out infinite;
}

@keyframes aurora {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(20px); }
}

/* ===================================
   ENHANCED SNOW ANIMATION
   =================================== */

.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -50px;
    color: #fff;
    opacity: 0.9;
    animation: snowfall linear infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.snowflake:nth-child(1) { left: 5%; animation-duration: 10s; font-size: 1.2em; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 15%; animation-duration: 12s; font-size: 1.8em; animation-delay: 1s; }
.snowflake:nth-child(3) { left: 25%; animation-duration: 8s; font-size: 1.4em; animation-delay: 2s; }
.snowflake:nth-child(4) { left: 35%; animation-duration: 14s; font-size: 2em; animation-delay: 0.5s; }
.snowflake:nth-child(5) { left: 45%; animation-duration: 9s; font-size: 1.6em; animation-delay: 3s; }
.snowflake:nth-child(6) { left: 55%; animation-duration: 11s; font-size: 1.3em; animation-delay: 1.5s; }
.snowflake:nth-child(7) { left: 65%; animation-duration: 13s; font-size: 1.9em; animation-delay: 2.5s; }
.snowflake:nth-child(8) { left: 75%; animation-duration: 10s; font-size: 1.5em; animation-delay: 0.8s; }
.snowflake:nth-child(9) { left: 85%; animation-duration: 15s; font-size: 1.7em; animation-delay: 4s; }
.snowflake:nth-child(10) { left: 95%; animation-duration: 8s; font-size: 1.4em; animation-delay: 2s; }
.snowflake:nth-child(11) { left: 10%; animation-duration: 11s; font-size: 2.2em; animation-delay: 3.5s; }
.snowflake:nth-child(12) { left: 90%; animation-duration: 9s; font-size: 1.1em; animation-delay: 1s; }

@keyframes snowfall {
    0% {
        transform: translateY(-50px) rotate(0deg) translateX(0);
        opacity: 1;
    }
    25% {
        transform: translateY(25vh) rotate(90deg) translateX(20px);
    }
    50% {
        transform: translateY(50vh) rotate(180deg) translateX(-20px);
    }
    75% {
        transform: translateY(75vh) rotate(270deg) translateX(10px);
    }
    100% {
        transform: translateY(105vh) rotate(360deg) translateX(-10px);
        opacity: 0.3;
    }
}

/* ===================================
   CHRISTMAS DECORATIONS
   =================================== */

/* Christmas Lights at Top */
.christmas-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    z-index: 100;
    padding-top: 5px;
}

.light-bulb {
    width: 15px;
    height: 25px;
    border-radius: 50% 50% 50% 50%;
    position: relative;
    animation: glow 1.5s ease-in-out infinite;
}

.light-bulb::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background: #333;
    border-radius: 2px;
}

.light-bulb:nth-child(5n+1) { background: #ff6b6b; box-shadow: 0 0 20px #ff6b6b, 0 0 40px #ff6b6b; animation-delay: 0s; }
.light-bulb:nth-child(5n+2) { background: #ffd93d; box-shadow: 0 0 20px #ffd93d, 0 0 40px #ffd93d; animation-delay: 0.2s; }
.light-bulb:nth-child(5n+3) { background: #6bcb77; box-shadow: 0 0 20px #6bcb77, 0 0 40px #6bcb77; animation-delay: 0.4s; }
.light-bulb:nth-child(5n+4) { background: #4d96ff; box-shadow: 0 0 20px #4d96ff, 0 0 40px #4d96ff; animation-delay: 0.6s; }
.light-bulb:nth-child(5n+5) { background: #ff6bd6; box-shadow: 0 0 20px #ff6bd6, 0 0 40px #ff6bd6; animation-delay: 0.8s; }

@keyframes glow {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.6; filter: brightness(0.7); }
}

/* Santa Silhouette */
.santa-sleigh {
    position: fixed;
    top: 80px;
    right: -200px;
    font-size: 3em;
    animation: santaFly 20s linear infinite;
    z-index: 50;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

@keyframes santaFly {
    0% { right: -200px; top: 80px; }
    50% { top: 120px; }
    100% { right: 110%; top: 80px; }
}

/* Floating Gift Boxes */
.floating-gifts {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.gift {
    position: absolute;
    font-size: 2em;
    animation: floatGift 6s ease-in-out infinite;
    opacity: 0.3;
}

.gift:nth-child(1) { left: 5%; bottom: 10%; animation-delay: 0s; }
.gift:nth-child(2) { left: 15%; bottom: 5%; animation-delay: 1s; font-size: 2.5em; }
.gift:nth-child(3) { right: 10%; bottom: 8%; animation-delay: 2s; }
.gift:nth-child(4) { right: 20%; bottom: 3%; animation-delay: 0.5s; font-size: 1.8em; }

@keyframes floatGift {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ===================================
   CONTAINER & LAYOUT
   =================================== */

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    position: relative;
    z-index: 1;
}

.section {
    margin-bottom: 30px;
}

/* ===================================
   GLASSMORPHISM CARDS
   =================================== */

.card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 40px rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

/* ===================================
   HEADER
   =================================== */

.header {
    text-align: center;
    padding: 50px 30px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.2) 0%, rgba(34, 139, 34, 0.2) 100%);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 
        0 0 60px rgba(255, 215, 0, 0.2),
        inset 0 0 60px rgba(255, 215, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '🎄';
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3em;
    animation: treeSway 3s ease-in-out infinite;
}

.header::after {
    content: '🎄';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%) scaleX(-1);
    font-size: 3em;
    animation: treeSway 3s ease-in-out infinite reverse;
}

@keyframes treeSway {
    0%, 100% { transform: translateY(-50%) rotate(-3deg); }
    50% { transform: translateY(-50%) rotate(3deg); }
}

.title {
    font-size: 3.2em;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700 0%, #fff7cc 25%, #ffd700 50%, #fff7cc 75%, #ffd700 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    animation: shimmer 3s linear infinite;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.emoji {
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
    -webkit-text-fill-color: initial;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.1); }
}

.subtitle {
    font-size: 1.3em;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 2px;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 16px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(56, 239, 125, 0.4);
}

.btn-success:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(56, 239, 125, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.2em;
    border-radius: 20px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9em;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-icon {
    font-size: 1.3em;
}

/* ===================================
   WELCOME SECTION
   =================================== */

.welcome-card {
    text-align: center;
}

.section-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffd700 0%, #ffec8b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.name-input-section {
    margin-bottom: 30px;
}

.name-input-section label {
    display: block;
    margin-bottom: 12px;
    font-size: 1.1em;
    color: var(--text-secondary);
}

.input-field {
    width: 100%;
    max-width: 400px;
    padding: 18px 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 1.1em;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.welcome-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.divider {
    color: var(--text-secondary);
    font-size: 1em;
    position: relative;
    padding: 0 30px;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.divider::before { right: 100%; }
.divider::after { left: 100%; }

/* Join Section */
.join-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.code-input-group {
    margin-bottom: 20px;
}

.code-input-group label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.code-input {
    text-align: center;
    letter-spacing: 8px;
    font-size: 1.5em;
    font-weight: 700;
    text-transform: uppercase;
}

/* ===================================
   ROOM SECTION
   =================================== */

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.room-title {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
}

.room-code-display {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 215, 0, 0.15);
    padding: 12px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.code-label {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.code-value {
    font-size: 1.4em;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

/* QR Section */
.qr-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.qr-section h3 {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-weight: 500;
}

.qr-container {
    display: inline-block;
    padding: 15px;
    background: white;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Your Info Section */
.your-info-section {
    margin-bottom: 25px;
}

.your-name-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    padding: 15px 25px;
    border-radius: 50px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    font-size: 1.1em;
    font-weight: 600;
}

.badge-icon {
    font-size: 1.5em;
}

/* Participants Section */
.participants-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header .section-title {
    margin-bottom: 0;
    font-size: 1.4em;
}

.participant-count {
    background: linear-gradient(135deg, #ffd700 0%, #ffec8b 100%);
    color: #1a1a2e;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1em;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.participants-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.participants-list::-webkit-scrollbar {
    width: 6px;
}

.participants-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.participants-list::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

.participant-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.participant-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.participant-item.is-you {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-color: rgba(255, 215, 0, 0.3);
}

.participant-number {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9em;
}

.participant-name {
    flex: 1;
    font-weight: 500;
}

.admin-badge {
    font-size: 1.3em;
}

.you-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffec8b 100%);
    color: #1a1a2e;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 700;
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 30px;
    font-size: 1.1em;
}

/* Admin Controls */
.admin-controls {
    text-align: center;
    margin-bottom: 25px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(56, 239, 125, 0.1) 0%, rgba(17, 153, 142, 0.1) 100%);
    border-radius: 20px;
    border: 1px solid rgba(56, 239, 125, 0.2);
}

.admin-info {
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 0.95em;
}

/* Waiting Message */
.waiting-message {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 25px;
}

.waiting-message p {
    font-size: 1.2em;
    color: var(--text-secondary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Refresh Section */
.refresh-section {
    text-align: center;
}

/* ===================================
   RESULT SECTION
   =================================== */

.result-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.result-header {
    margin-bottom: 30px;
}

.result-title {
    font-size: 2.5em;
    font-weight: 800;
    background: linear-gradient(135deg, #ffd700 0%, #ff6b6b 50%, #ffd700 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 2s linear infinite;
}

.your-match-section {
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 107, 107, 0.15) 100%);
    border-radius: 24px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.match-label {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.match-name-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.match-avatar {
    font-size: 5em;
    animation: bounce 2s ease-in-out infinite;
}

.match-name {
    font-size: 2.5em;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.match-message {
    font-size: 1.3em;
    color: var(--text-primary);
}

/* Confetti */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    font-size: 2em;
    animation: confettiFall 4s ease-in-out infinite;
}

.confetti:nth-child(1) { left: 10%; animation-delay: 0s; }
.confetti:nth-child(2) { left: 30%; animation-delay: 0.5s; }
.confetti:nth-child(3) { left: 50%; animation-delay: 1s; }
.confetti:nth-child(4) { left: 70%; animation-delay: 1.5s; }
.confetti:nth-child(5) { left: 90%; animation-delay: 2s; }

@keyframes confettiFall {
    0% { transform: translateY(-100%) rotate(0deg); opacity: 1; }
    100% { transform: translateY(500%) rotate(720deg); opacity: 0; }
}

.result-info {
    margin-bottom: 30px;
}

.result-info p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 1.05em;
}

/* ===================================
   KAHOOT-STYLE INVITE SCREEN
   =================================== */

.invite-screen {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 50px 40px;
    text-align: center;
    border: 3px solid rgba(255, 215, 0, 0.4);
    box-shadow: 
        0 0 80px rgba(255, 215, 0, 0.3),
        inset 0 0 80px rgba(255, 215, 0, 0.05);
    animation: inviteGlow 3s ease-in-out infinite;
}

@keyframes inviteGlow {
    0%, 100% { box-shadow: 0 0 60px rgba(255, 215, 0, 0.3), inset 0 0 60px rgba(255, 215, 0, 0.05); }
    50% { box-shadow: 0 0 100px rgba(255, 215, 0, 0.5), inset 0 0 100px rgba(255, 215, 0, 0.1); }
}

.invite-header {
    margin-bottom: 40px;
}

.invite-header h2 {
    font-size: 2.8em;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700 0%, #fff 50%, #ffd700 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 2s linear infinite;
    margin-bottom: 15px;
}

.invite-subtitle {
    font-size: 1.4em;
    color: var(--text-secondary);
}

.invite-code-container {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 215, 0, 0.1) 100%);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    border: 2px solid rgba(255, 215, 0, 0.4);
}

.invite-code-label {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.invite-code {
    font-size: 5em;
    font-weight: 900;
    letter-spacing: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #fff 50%, #ffd700 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Courier New', monospace;
    margin-bottom: 25px;
    animation: shimmer 2s linear infinite, codeGlow 2s ease-in-out infinite;
    text-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
}

@keyframes codeGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5)); }
    50% { filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.8)); }
}

.invite-qr-container {
    background: white;
    border-radius: 24px;
    padding: 30px;
    display: inline-block;
    margin-bottom: 40px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.2);
}

.invite-qr-label {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.invite-qr-code {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 220px;
    min-width: 220px;
}

.invite-qr-code canvas {
    border-radius: 12px;
}

.invite-link-section {
    display: flex;
    gap: 15px;
    max-width: 650px;
    margin: 0 auto 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.invite-link-input {
    flex: 1;
    min-width: 300px;
    padding: 18px 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1em;
    text-overflow: ellipsis;
    backdrop-filter: blur(10px);
}

.invite-participants {
    background: linear-gradient(135deg, rgba(56, 239, 125, 0.15) 0%, rgba(17, 153, 142, 0.15) 100%);
    border: 2px solid rgba(56, 239, 125, 0.3);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 40px;
}

.invite-participants-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.3em;
    margin-bottom: 20px;
}

.invite-participants-icon {
    font-size: 1.6em;
}

.invite-count-badge {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    animation: countPulse 1s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(56, 239, 125, 0.4);
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.invite-participants-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.invite-participant-chip {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: chipSlide 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

@keyframes chipSlide {
    from { transform: scale(0) rotate(-10deg); opacity: 0; }
    to { transform: scale(1) rotate(0deg); opacity: 1; }
}

.invite-participant-chip.is-admin {
    border-color: rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
}

.invite-actions {
    margin-top: 10px;
}

.invite-actions .btn-large {
    padding: 22px 60px;
    font-size: 1.4em;
}

/* ===================================
   LOADING OVERLAY
   =================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loading-animation {
    text-align: center;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 215, 0, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: var(--primary-color);
    font-size: 1.3em;
    font-weight: 600;
}

/* ===================================
   MESSAGES
   =================================== */

.message-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    padding: 18px 28px;
    border-radius: 16px;
    font-weight: 500;
    animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.message-success {
    background: linear-gradient(135deg, rgba(56, 239, 125, 0.9) 0%, rgba(17, 153, 142, 0.9) 100%);
    color: white;
}

.message-error {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.9) 0%, rgba(196, 30, 58, 0.9) 100%);
    color: white;
}

.message-info {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.9) 0%, rgba(255, 193, 7, 0.9) 100%);
    color: #1a1a2e;
}

.fade-out {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    font-size: 0.95em;
    position: relative;
    z-index: 1;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .container {
        padding: 70px 15px 30px;
    }

    .header {
        padding: 35px 20px;
    }

    .header::before,
    .header::after {
        font-size: 2em;
        left: 15px;
        right: 15px;
    }

    .title {
        font-size: 2em;
    }

    .card {
        padding: 25px 20px;
    }

    .btn-large {
        padding: 16px 30px;
        font-size: 1.1em;
    }

    .invite-screen {
        padding: 30px 20px;
    }

    .invite-header h2 {
        font-size: 2em;
    }

    .invite-code {
        font-size: 3em;
        letter-spacing: 10px;
    }

    .invite-code-container {
        padding: 25px 15px;
    }

    .invite-qr-container {
        padding: 20px;
    }

    .invite-qr-code {
        min-height: 180px;
        min-width: 180px;
    }

    .room-header {
        flex-direction: column;
        text-align: center;
    }

    .match-name {
        font-size: 2em;
    }

    .match-avatar {
        font-size: 4em;
    }

    .christmas-lights {
        height: 40px;
    }

    .light-bulb {
        width: 10px;
        height: 18px;
    }

    .santa-sleigh {
        font-size: 2em;
        top: 50px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.6em;
    }

    .invite-code {
        font-size: 2.2em;
        letter-spacing: 6px;
    }

    .section-title {
        font-size: 1.5em;
    }

    .invite-link-input {
        min-width: 100%;
    }
}
