/* ===================================================
   🧧 LÌ XÌ HNP EDUCATION 2026 - TẾT THEME
   =================================================== */

/* === IMPORTS & FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&family=Inter:wght@400;500;600;700;800&display=swap');

/* === CSS VARIABLES === */
:root {
    --lixi-red: #C41E3A;
    --lixi-red-dark: #9B1B30;
    --lixi-red-light: #E84057;
    --lixi-gold: #FFD700;
    --lixi-gold-dark: #DAA520;
    --lixi-gold-light: #FFE44D;
    --lixi-cream: #FFF8E7;
    --lixi-bg-start: #1a0a0e;
    --lixi-bg-end: #2d0a12;
    --lixi-card-bg: rgba(255, 255, 255, 0.06);
    --lixi-card-border: rgba(255, 215, 0, 0.15);
    --lixi-text: #FFF8E7;
    --lixi-text-muted: rgba(255, 248, 231, 0.6);
    --lixi-radius: 20px;
    --lixi-radius-sm: 12px;
    --lixi-shadow: 0 8px 32px rgba(196, 30, 58, 0.3);
    --lixi-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET & BASE === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body.lixi-body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: linear-gradient(135deg, var(--lixi-bg-start), var(--lixi-bg-end));
    color: var(--lixi-text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* === ANIMATED BACKGROUND === */
.lixi-bg-pattern {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(196, 30, 58, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(196, 30, 58, 0.05) 0%, transparent 70%);
    animation: bg-pulse 8s ease-in-out infinite alternate;
}

@keyframes bg-pulse {
    0% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

/* Floating lanterns */
.lantern {
    position: fixed;
    font-size: 2rem;
    opacity: 0.15;
    animation: float-lantern 15s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.lantern:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.lantern:nth-child(2) {
    top: 30%;
    right: 8%;
    animation-delay: 3s;
    font-size: 1.5rem;
}

.lantern:nth-child(3) {
    bottom: 20%;
    left: 15%;
    animation-delay: 6s;
    font-size: 2.5rem;
}

.lantern:nth-child(4) {
    top: 60%;
    right: 12%;
    animation-delay: 9s;
}

.lantern:nth-child(5) {
    bottom: 40%;
    left: 8%;
    animation-delay: 2s;
    font-size: 1.8rem;
}

@keyframes float-lantern {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* === MAIN CONTAINER === */
.lixi-container {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
    padding: 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* === HEADER === */
.lixi-header {
    text-align: center;
    padding: 1.5rem 0 1rem;
    width: 100%;
}

.lixi-logo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--lixi-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.lixi-logo img {
    height: 32px;
    width: auto;
}

/* === SCREENS === */
.lixi-screen {
    display: none;
    width: 100%;
    animation: fadeSlideIn 0.5s ease-out;
}

.lixi-screen.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === SCREEN 1: WELCOME === */
.welcome-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--lixi-card-bg);
    border: 1px solid var(--lixi-card-border);
    border-radius: var(--lixi-radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--lixi-shadow);
}

.envelope-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.envelope-icon {
    font-size: 5rem;
    animation: bounce-envelope 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 20px rgba(255, 215, 0, 0.4));
}

@keyframes bounce-envelope {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-12px) scale(1.05);
    }
}

.envelope-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3), transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

.welcome-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--lixi-gold);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.welcome-subtitle {
    font-size: 1rem;
    color: var(--lixi-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.welcome-year {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--lixi-gold), var(--lixi-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

/* === BUTTONS === */
.btn-lixi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--lixi-transition);
    font-family: inherit;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-lixi::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-lixi:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--lixi-red), var(--lixi-red-light));
    color: white;
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.4);
}

.btn-primary::before {
    background: linear-gradient(135deg, var(--lixi-red-light), var(--lixi-red));
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(196, 30, 58, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-gold {
    background: linear-gradient(135deg, var(--lixi-gold-dark), var(--lixi-gold));
    color: #1a0a0e;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(255, 215, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--lixi-gold);
    border: 2px solid var(--lixi-gold-dark);
}

.btn-outline:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.btn-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

/* === SCREEN 2: AUTH / VERIFY === */
.verify-card {
    padding: 2rem;
    background: var(--lixi-card-bg);
    border: 1px solid var(--lixi-card-border);
    border-radius: var(--lixi-radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.verify-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1.5rem;
}

.verify-tab {
    flex: 1;
    padding: 0.7rem;
    border: none;
    background: transparent;
    color: var(--lixi-text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--lixi-transition);
    font-family: inherit;
}

.verify-tab.active {
    background: var(--lixi-red);
    color: white;
    box-shadow: 0 2px 10px rgba(196, 30, 58, 0.3);
}

.verify-panel {
    display: none;
}

.verify-panel.active {
    display: block;
    animation: fadeSlideIn 0.3s ease-out;
}

.verify-icon {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.verify-desc {
    text-align: center;
    color: var(--lixi-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Google Sign In Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.9rem;
    background: white;
    color: #333;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--lixi-transition);
    font-family: inherit;
}

.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

/* Guest Form */
.lixi-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--lixi-gold);
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--lixi-radius-sm);
    color: var(--lixi-text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--lixi-transition);
    outline: none;
}

.form-group input::placeholder {
    color: var(--lixi-text-muted);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--lixi-gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-group select option {
    background: #2d0a12;
    color: var(--lixi-text);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

/* === SCREEN 3: QUIZ SELECT === */
.quiz-setup-card {
    padding: 2rem;
    background: var(--lixi-card-bg);
    border: 1px solid var(--lixi-card-border);
    border-radius: var(--lixi-radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: center;
}

.setup-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--lixi-gold);
    margin-bottom: 0.5rem;
}

.setup-desc {
    color: var(--lixi-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.subject-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.8rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: var(--lixi-radius-sm);
    color: var(--lixi-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--lixi-transition);
    font-family: inherit;
}

.subject-btn i {
    font-size: 1.3rem;
}

.subject-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--lixi-gold);
}

.subject-btn.selected {
    border-color: var(--lixi-gold);
    background: rgba(255, 215, 0, 0.15);
    color: var(--lixi-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
}

/* === SCREEN 4: QUIZ === */
.quiz-card {
    padding: 1.5rem;
    background: var(--lixi-card-bg);
    border: 1px solid var(--lixi-card-border);
    border-radius: var(--lixi-radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.quiz-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.quiz-progress-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lixi-gold);
}

.quiz-timer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: rgba(196, 30, 58, 0.2);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--lixi-red-light);
}

.quiz-timer.warning {
    color: #ff6b6b;
    animation: timer-pulse 0.5s ease-in-out infinite;
}

@keyframes timer-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--lixi-gold-dark), var(--lixi-gold));
    border-radius: 3px;
    transition: width 0.4s ease;
}

.quiz-score-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    justify-content: center;
}

.score-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: var(--lixi-transition);
}

.score-dot.correct {
    background: var(--lixi-gold);
    border-color: var(--lixi-gold);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.score-dot.wrong {
    background: var(--lixi-red-light);
    border-color: var(--lixi-red-light);
}

.quiz-question {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    color: var(--lixi-text);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--lixi-radius-sm);
    cursor: pointer;
    transition: var(--lixi-transition);
    font-size: 0.95rem;
    color: var(--lixi-text);
}

.quiz-option:hover {
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
}

.quiz-option .option-letter {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--lixi-gold);
    flex-shrink: 0;
}

.quiz-option.selected {
    border-color: var(--lixi-gold);
    background: rgba(255, 215, 0, 0.12);
}

.quiz-option.correct {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.15);
    pointer-events: none;
}

.quiz-option.correct .option-letter {
    background: #4caf50;
    color: white;
}

.quiz-option.wrong {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.15);
    pointer-events: none;
}

.quiz-option.wrong .option-letter {
    background: #f44336;
    color: white;
}

.quiz-option.disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* === SCREEN 5: SPIN WHEEL === */
.spin-card {
    padding: 2rem 1.5rem;
    background: var(--lixi-card-bg);
    border: 1px solid var(--lixi-card-border);
    border-radius: var(--lixi-radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: center;
}

.spin-title {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--lixi-gold);
    margin-bottom: 0.3rem;
}

.spin-subtitle {
    color: var(--lixi-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.spins-remaining {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--lixi-gold);
    margin-bottom: 1.5rem;
}

.wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 1.5rem;
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    z-index: 10;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    animation: pointer-bounce 1s ease-in-out infinite;
}

@keyframes pointer-bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(4px);
    }
}

.wheel-canvas {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    box-shadow:
        0 0 0 8px rgba(255, 215, 0, 0.3),
        0 0 0 12px rgba(196, 30, 58, 0.3),
        0 0 30px rgba(255, 215, 0, 0.2);
}

.wheel-center-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lixi-red), var(--lixi-red-dark));
    border: 3px solid var(--lixi-gold);
    color: white;
    font-weight: 800;
    font-size: 0.7rem;
    cursor: pointer;
    transition: var(--lixi-transition);
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
    z-index: 5;
    letter-spacing: 0.5px;
}

.wheel-center-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(196, 30, 58, 0.5);
}

.wheel-center-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translate(-50%, -50%);
}

/* Prize popup */
.prize-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.prize-popup.show {
    display: flex;
    animation: fadeSlideIn 0.4s ease-out;
}

.prize-popup-content {
    background: linear-gradient(135deg, #2d0a12, #1a0a0e);
    border: 2px solid var(--lixi-gold);
    border-radius: var(--lixi-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.2);
}

.prize-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce-envelope 1s ease-in-out infinite;
}

.prize-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--lixi-gold);
    margin-bottom: 0.5rem;
}

.prize-desc {
    color: var(--lixi-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Collected prizes list */
.prizes-collected {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
}

.prizes-collected h4 {
    font-size: 0.85rem;
    color: var(--lixi-gold);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.prize-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.8rem;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 8px;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

.prize-item .prize-item-emoji {
    font-size: 1.2rem;
}

/* === SCREEN 6: RESULTS === */
.result-card {
    padding: 2rem;
    background: var(--lixi-card-bg);
    border: 1px solid var(--lixi-card-border);
    border-radius: var(--lixi-radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: center;
}

.result-emoji {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.result-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--lixi-gold);
    margin-bottom: 0.3rem;
}

.result-subtitle {
    color: var(--lixi-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.result-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    padding: 1rem;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: var(--lixi-radius-sm);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--lixi-gold);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--lixi-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
}

.result-prizes-list {
    margin-bottom: 1.5rem;
    text-align: left;
}

.result-prizes-list h4 {
    font-size: 0.9rem;
    color: var(--lixi-gold);
    margin-bottom: 0.6rem;
}

/* CTA for guests */
.cta-card {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.2), rgba(255, 215, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--lixi-radius-sm);
    text-align: center;
}

.cta-card h4 {
    font-size: 1rem;
    color: var(--lixi-gold);
    margin-bottom: 0.5rem;
}

.cta-card p {
    font-size: 0.85rem;
    color: var(--lixi-text-muted);
    margin-bottom: 1rem;
}

/* === ALREADY PLAYED SCREEN === */
.already-played-card {
    padding: 2.5rem 2rem;
    background: var(--lixi-card-bg);
    border: 1px solid var(--lixi-card-border);
    border-radius: var(--lixi-radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: center;
}

.already-played-card .welcome-title {
    font-size: 1.8rem;
}

/* === SECTION TITLES === */
.section-title-lixi {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--lixi-text);
    margin-bottom: 0.3rem;
    text-align: center;
}

/* === CONFETTI === */
.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
}

/* === LOADING === */
.lixi-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

.lixi-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 215, 0, 0.2);
    border-top-color: var(--lixi-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === TOAST === */
.lixi-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 0.8rem 1.5rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 2000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lixi-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
    .lixi-container {
        padding: 0.8rem;
    }

    .welcome-card {
        padding: 1.8rem 1.2rem;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .welcome-year {
        font-size: 2.4rem;
    }

    .envelope-icon {
        font-size: 4rem;
    }

    .subject-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .wheel-container {
        width: 260px;
        height: 260px;
    }

    .wheel-canvas {
        width: 260px;
        height: 260px;
    }

    .spin-title {
        font-size: 1.5rem;
    }

    .quiz-question {
        font-size: 0.95rem;
    }

    .result-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .lixi-container {
        padding: 2rem;
    }

    .welcome-card {
        padding: 3rem 2.5rem;
    }

    .welcome-title {
        font-size: 3rem;
    }

    .wheel-container {
        width: 340px;
        height: 340px;
    }

    .wheel-canvas {
        width: 340px;
        height: 340px;
    }
}

/* === SHARE BUTTONS === */
.share-section {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
}

.share-section h4 {
    font-size: 0.85rem;
    color: var(--lixi-text-muted);
    margin-bottom: 0.8rem;
}

.share-buttons {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
}

.btn-share {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--lixi-transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: inherit;
}

.btn-share-fb {
    background: #1877f2;
    color: white;
}

.btn-share-fb:hover {
    background: #166fe5;
    transform: translateY(-2px);
}

.btn-share-copy {
    background: rgba(255, 255, 255, 0.1);
    color: var(--lixi-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-share-copy:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Footer */
.lixi-footer {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--lixi-text-muted);
    font-size: 0.75rem;
}

.lixi-footer a {
    color: var(--lixi-gold);
    text-decoration: none;
}