/* ============================================
   Quiz Weselny - Style CSS v4.0
   ============================================ */

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

/* Zmienne globalne */
:root {
    /* Sycylijskie Cytryny & Liście */
    --primary: #FFD54F;        /* Jasny cytrynowy */
    --primary-dark: #FBC02D;   /* Ciemniejszy cytrynowy */
    --secondary: #7CB342;      /* Zielony liść */
    --secondary-dark: #689F38; /* Ciemniejszy zielony */
    
    --background: #FFFEF7;     /* Kremowe tło */
    --text: #2E3B2E;           /* Ciemny zielony tekst */
    --white: #FFFFFF;
    
    --error: #E57373;
    --success: #81C784;
    --light-lemon: #FFF9C4;    /* Bardzo jasny cytrynowy */
    --light-green: #F1F8E9;    /* Bardzo jasny zielony */
    --shadow: rgba(124, 179, 66, 0.15);
    
    /* Gradient sycylijski */
    --gradient-lemon: linear-gradient(135deg, #FFD54F 0%, #FBC02D 100%);
    --gradient-green: linear-gradient(135deg, #7CB342 0%, #689F38 100%);
    --gradient-fresh: linear-gradient(135deg, #FFD54F 0%, #7CB342 100%);
}

/* Wariant: Zielony Ogród (zaproszenia) */
[data-theme="eucalyptus-garden"] {
    --primary: #8B9D83;        /* Szałwiowy zielony */
    --primary-dark: #6B7D63;   /* Ciemniejszy zielony */
    --secondary: #A8B5A1;      /* Jasna szałwia */
    --secondary-dark: #7A8A73; /* Ciemniejsza szałwia */
    
    --background: #F5F5F0;     /* Delikatny beż */
    --text: #3E4A3E;           /* Ciemny zielony tekst */
    --white: #FFFFFF;
    
    --error: #C17B7B;
    --success: #8B9D83;
    --light-lemon: #E8EBE5;    /* Bardzo jasny zielony */
    --light-green: #DDE5D8;    /* Jasny miętowy */
    --shadow: rgba(139, 157, 131, 0.15);
    
    /* Gradients */
    --gradient-lemon: linear-gradient(135deg, #8B9D83 0%, #6B7D63 100%);
    --gradient-green: linear-gradient(135deg, #A8B5A1 0%, #8B9D83 100%);
    --gradient-fresh: linear-gradient(135deg, #A8B5A1 0%, #8B9D83 100%);
}

/* Wariant ciemniejszy (wieczorny) - Sycylijskie Cytryny */
[data-theme="sicilian-evening"] {
    --primary: #FBC02D;
    --secondary: #689F38;
    --background: #FFFEF7;
    --light-lemon: #FFF59D;
    --light-green: #DCEDC8;
}

/* Body */
body {
    font-family: 'Lato', sans-serif;
    background: #F5F5F0;
    min-height: 100vh;
    color: var(--text);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Kwiat lewy górny róg - prawdziwe zdjęcie */
body::before {
    content: '';
    position: fixed;
    top: -30px;
    left: -30px;
    width: 350px;
    height: 350px;
    background-image: url('../images/flower-bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top left;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    animation: floatFlower 20s ease-in-out infinite;
}

/* Kwiat prawy dolny róg - prawdziwe zdjęcie */
body::after {
    content: '';
    position: fixed;
    bottom: -30px;
    right: -30px;
    width: 400px;
    height: 400px;
    background-image: url('../images/flower-bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    transform: scaleX(-1); /* Odbicie lustrzane */
}

@keyframes floatFlower {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(10px, 10px) rotate(3deg);
    }
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Dodatkowe kwiaty w różnych miejscach */
.container::before {
    content: '';
    position: fixed;
    top: 40%;
    left: -50px;
    width: 200px;
    height: 200px;
    background-image: url('../images/flower-bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-20deg);
}

.container::after {
    content: '';
    position: fixed;
    top: 30%;
    right: -50px;
    width: 250px;
    height: 250px;
    background-image: url('../images/flower-bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
    transform: scaleX(-1) rotate(15deg);
}

/* Screens */
.screen {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.screen.active {
    display: block;
}

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

/* Card */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    animation: cardSlideUp 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Typography */
.title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #2D4A2B;
    text-align: center;
    margin-bottom: 15px;
    animation: titleSlideIn 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }
    60% {
        transform: translateY(5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.subtitle {
    font-size: 1.4rem;
    color: #5A6F57;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 400;
    animation: subtitleFadeIn 1s ease;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

@keyframes subtitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.description {
    text-align: center;
    color: #5A6F57;
    margin-bottom: 35px;
    font-size: 1.05rem;
    opacity: 0.85;
    line-height: 1.7;
    animation: descriptionFadeIn 1s ease;
    animation-delay: 0.5s;
    animation-fill-mode: both;
}

@keyframes descriptionFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 0.85;
        transform: translateY(0);
    }
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #2D4A2B;
    text-align: center;
    margin-bottom: 25px;
    animation: h2SlideIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes h2SlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 35px;
    animation: bounceIn 0.8s ease;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.btn {
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: 'Lato', sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(124, 179, 66, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: #3F5A3B;
    color: #FFFFFF;
    font-weight: 700;
}

/* Eucalyptus theme buttons */
[data-theme="eucalyptus-garden"] .btn-primary {
    background: #5A6F57;
    color: #FFFFFF;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(63, 90, 59, 0.3);
    background: #2D4A2B;
}

[data-theme="eucalyptus-garden"] .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(90, 111, 87, 0.3);
    background: #4A5F47;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: var(--white);
    color: #3F5A3B;
    border: 2px solid #5A6F57;
    font-weight: 600;
}

.btn-secondary:hover {
    background: #F5F5F0;
    color: #2D4A2B;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(90, 111, 87, 0.2);
    border-color: #3F5A3B;
}

/* Eucalyptus theme */
[data-theme="eucalyptus-garden"] .btn-secondary:hover {
    background: #E8EBE5;
    box-shadow: 0 8px 25px rgba(139, 157, 131, 0.2);
}

.btn-secondary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-link {
    background: none;
    border: none;
    color: var(--secondary);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 12px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: var(--secondary-dark);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 10px;
}

/* Input */
input[type="text"] {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid #DDE5D8;
    border-radius: 12px;
    font-size: 1.2rem;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
    margin: 20px 0;
    background: #FFFFFF;
}

input[type="text"]:focus {
    outline: none;
    border-color: #5A6F57;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(90, 111, 87, 0.12);
}

input[type="text"]::placeholder {
    color: #A8B5A1;
    opacity: 0.7;
}

/* Progress */
.progress-header {
    margin-bottom: 30px;
    animation: progressSlideDown 0.6s ease;
}

@keyframes progressSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-text {
    text-align: center;
    font-size: 1.1rem;
    color: #5A6F57;
    margin-bottom: 12px;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #F5F5F0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid #DDE5D8;
}

.progress-fill {
    height: 100%;
    background: #5A6F57;
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    width: 0%;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* Timer */
.timer-container {
    margin-bottom: 25px;
    animation: timerSlideIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes timerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.timer-container.hidden {
    display: none;
}

.timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 12px;
}

.timer-icon {
    font-size: 2rem;
    animation: timerIconPulse 1s infinite;
}

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

.timer-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timer-text.warning {
    color: var(--error);
    animation: timerWarningPulse 1s infinite;
}

@keyframes timerWarningPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.08);
    }
}

.timer-bar {
    width: 100%;
    height: 14px;
    background: var(--light-gold);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timer-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--primary));
    border-radius: 10px;
    transition: width 0.1s linear, background 0.3s ease;
    width: 100%;
    box-shadow: 0 0 15px var(--success);
    position: relative;
}

.timer-bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: timerBarShine 2s infinite;
}

@keyframes timerBarShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.timer-bar-fill.warning {
    background: linear-gradient(90deg, var(--error), #ff6b6b);
    box-shadow: 0 0 15px var(--error);
    animation: timerBarPulse 0.5s infinite;
}

@keyframes timerBarPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Question */
.question-item {
    margin: 20px 0;
    animation: questionSlideIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes questionSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.question-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 15px;
    margin: 20px 0;
    border: 3px solid var(--light-gold);
    animation: imageZoomIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.question-image:hover {
    transform: scale(1.02);
}

@keyframes imageZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.question-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.5;
    animation: textFadeIn 0.8s ease;
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.answers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.answer-option {
    background: #FFFFFF;
    border: 2px solid #DDE5D8;
    border-radius: 15px;
    padding: 22px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    animation: answerSlideIn 0.5s ease;
    animation-fill-mode: both;
}

.answer-option:nth-child(1) { animation-delay: 0.1s; }
.answer-option:nth-child(2) { animation-delay: 0.2s; }
.answer-option:nth-child(3) { animation-delay: 0.3s; }
.answer-option:nth-child(4) { animation-delay: 0.4s; }

@keyframes answerSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.answer-option:hover {
    background: #F5F5F0;
    border-color: #A8B5A1;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(168, 181, 161, 0.15);
}

.answer-option.selected {
    background: #5A6F57;
    color: #FFFFFF;
    border-color: #3F5A3B;
    font-weight: 600;
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(90, 111, 87, 0.25);
}

/* Eucalyptus theme */
[data-theme="eucalyptus-garden"] .answer-option {
    background: #FFFFFF;
    border-color: #DDE5D8;
}

[data-theme="eucalyptus-garden"] .answer-option:hover {
    background: #F5F5F0;
    border-color: #8B9D83;
}

[data-theme="eucalyptus-garden"] .answer-option.selected {
    background: #5A6F57;
    color: #FFFFFF;
    border-color: #3F5A3B;
    box-shadow: 0 6px 20px rgba(90, 111, 87, 0.25);
}

.answer-text {
    flex: 1;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* Results */
.results-header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeIn 0.6s ease;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

@keyframes headerBounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(-5px);
    }
    75% {
        transform: translateY(-7px);
    }
}

.player-name-result {
    font-size: 1.4rem;
    color: var(--secondary-dark);
    font-weight: 700;
}

.score-display {
    text-align: center;
    margin: 40px 0;
    animation: zoomIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

.score-circle {
    display: inline-block;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: #5A6F57;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    margin-bottom: 20px;
    box-shadow: 0 15px 40px rgba(90, 111, 87, 0.25);
    position: relative;
    animation: scoreRotate 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation-delay: 0.6s;
    animation-fill-mode: both;
    border: 5px solid white;
}

@keyframes scoreRotate {
    0% {
        transform: rotate(0deg) scale(0);
        opacity: 0;
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

.score-number {
    font-size: 4.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    position: relative;
    z-index: 1;
    animation: numberCount 1s ease-out;
}

@keyframes numberCount {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.score-total {
    font-size: 1.8rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.score-percentage {
    font-size: 3rem;
    font-weight: 700;
    color: #3F5A3B;
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation-delay: 1.2s;
    animation-fill-mode: both;
}

@keyframes percentageBounce {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    60% {
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.time-display {
    text-align: center;
    margin: 20px 0;
    font-size: 1.1rem;
    color: var(--text);
    animation: fadeIn 0.6s ease;
    animation-delay: 1.4s;
    animation-fill-mode: both;
}

/* Result Messages */
.result-message {
    text-align: center;
    margin: 30px auto;
    padding: 25px;
    border-radius: 15px;
    max-width: 500px;
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation-delay: 1.6s;
    animation-fill-mode: both;
}

.result-message .message-icon {
    font-size: 4rem;
    margin: 0 0 15px 0;
    animation: scaleIn 0.6s ease;
    animation-delay: 1.8s;
    animation-fill-mode: both;
}

.result-message .message-text {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 10px 0;
    line-height: 1.5;
}

.result-message .message-details {
    font-size: 1rem;
    opacity: 0.8;
    margin: 10px 0 0 0;
}

/* Improved score */
.result-message.improved {
    background: linear-gradient(135deg, #FFF9C4, #FFE082);
    border: 3px solid #FFD54F;
    color: #F57F17;
}

.result-message.improved .message-icon {
    animation: trophyBounce 1s infinite;
}

/* Not improved */
.result-message.not-improved {
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
    border: 3px solid #E57373;
    color: #C62828;
}

/* Leaderboard */
.leaderboard-container {
    margin: 30px 0;
    max-height: 500px;
    overflow-y: auto;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    margin: 12px 0;
    background: #FFFFFF;
    border-radius: 15px;
    border-left: 4px solid #A8B5A1;
    transition: all 0.3s ease;
    animation: leaderboardSlide 0.5s ease;
    animation-fill-mode: both;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.leaderboard-entry:nth-child(1) { animation-delay: 0.1s; }
.leaderboard-entry:nth-child(2) { animation-delay: 0.15s; }
.leaderboard-entry:nth-child(3) { animation-delay: 0.2s; }
.leaderboard-entry:nth-child(4) { animation-delay: 0.25s; }
.leaderboard-entry:nth-child(5) { animation-delay: 0.3s; }
.leaderboard-entry:nth-child(6) { animation-delay: 0.35s; }
.leaderboard-entry:nth-child(7) { animation-delay: 0.4s; }
.leaderboard-entry:nth-child(8) { animation-delay: 0.45s; }
.leaderboard-entry:nth-child(9) { animation-delay: 0.5s; }
.leaderboard-entry:nth-child(10) { animation-delay: 0.55s; }

@keyframes leaderboardSlide {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.leaderboard-entry:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(90, 111, 87, 0.12);
    background: #FAFAF8;
}

.leaderboard-entry.top-3 {
    background: #F5F5F0;
    border-left-width: 5px;
    border-left-color: #5A6F57;
    box-shadow: 0 4px 15px rgba(90, 111, 87, 0.15);
}

.rank {
    font-size: 1.8rem;
    font-weight: 700;
    color: #5A6F57;
    min-width: 50px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.trophy {
    font-size: 2rem;
    animation: trophyBounce 2s infinite;
    position: relative;
    z-index: 1;
}

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

.player-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.player-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2D4A2B;
}

.player-score {
    font-size: 0.95rem;
    color: #5A6F57;
    opacity: 0.8;
}

/* Footer */
.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gold);
    text-align: center;
}

.footer p {
    color: var(--secondary);
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Loading */
.loading {
    text-align: center;
    color: var(--secondary);
    opacity: 0.7;
    padding: 40px;
    font-style: italic;
}

/* Error */
.error-message {
    text-align: center;
    color: var(--error);
    padding: 20px;
    background: #ffe6e6;
    border-radius: 10px;
    margin: 20px 0;
}

/* ============================================ */
/* ANIMACJE PRZEJŚĆ - PREMIUM TRANSITIONS */
/* ============================================ */

/* Slide out left - wyjście pytania */
@keyframes slideOutLeft {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-100%);
    }
}

/* Slide in right - wejście nowego pytania */
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade in - płynne pojawienie */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fade out - płynne zniknięcie */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Scale in - powiększenie */
@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Zoom in - efekt zoom */
@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    60% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Bounce in - odbicie */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    60% {
        opacity: 1;
        transform: translateY(10px);
    }
    80% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Screens with fade transition */
.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .card {
        padding: 25px;
    }

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .score-circle {
        width: 150px;
        height: 150px;
    }

    .score-number {
        font-size: 3rem;
    }

    .question-image {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 20px;
        border-radius: 15px;
    }

    .title {
        font-size: 1.5rem;
    }

    .btn {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .answer-text {
        font-size: 1rem;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

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