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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #fbebd3;
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

.title {
    font-size: 3.5rem;
    font-weight: 700;
    color: rgb(0, 0, 0);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.scoreboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.grade-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}



.grade-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.grade-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.grade-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    text-align: center;
}



.points {
    text-align: center;
}

.points-number {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.points-label {
    font-size: 1rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .scoreboard {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .grade-card {
        padding: 1.5rem;
    }
    
    .points-number {
        font-size: 3rem;
    }
}

/* Animation for points updates */
@keyframes pointsUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.points-update {
    animation: pointsUpdate 0.3s ease-in-out;
}

.feedback-section {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feedback-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.feedback-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    text-align: center;
}

.feedback-description {
    font-size: 1rem;
    color: #4a5568;
    text-align: center;
    line-height: 1.5;
}

.feedback-label {
    width: 100%;
    font-size: 0.95rem;
    color: #4a5568;
    font-weight: 600;
    margin-top: 0.5rem;
}

.feedback-input,
.feedback-textarea {
    width: 100%;
    border: 2px solid rgba(74, 85, 104, 0.2);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(247, 250, 252, 0.8);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 0.75rem;
}

.feedback-input:focus,
.feedback-textarea:focus {
    outline: none;
    border-color: #ff8800;
    box-shadow: 0 0 0 3px rgba(255, 136, 0, 0.2);
}

.feedback-textarea {
    resize: vertical;
    min-height: 140px;
}

.feedback-submit {
    align-self: stretch;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ff8800, #ffb347);
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 0.5rem;
}

.feedback-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(255, 136, 0, 0.3);
}

.feedback-status {
    min-height: 1.25rem;
    font-size: 0.95rem;
    text-align: center;
}

.feedback-status.success {
    color: #0f8a4b;
}

.feedback-status.error {
    color: #c53030;
}

.support-message {
    margin: 8px auto 0;
    padding: 8px 0 24px;
    text-align: center;
    color: #9aa0a6;
    font-size: 0.9rem;
}

.support-message a {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .feedback-card {
        padding: 1.5rem;
    }
}

.confetti-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 999;
}

.confetti-piece {
    position: absolute;
    width: var(--confetti-size, 8px);
    height: var(--confetti-size, 8px);
    border-radius: 999px;
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(1);
    animation-name: confettiFloat;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
    will-change: transform, opacity;
}

@keyframes confettiFloat {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(0.6) rotate(0deg);
    }
    18% {
        opacity: 1;
        transform: translate3d(
            calc(var(--confetti-drift, 0px) * 0.35),
            calc(-1 * var(--confetti-rise, 140px) * 0.6),
            0
        )
        scale(0.92)
        rotate(calc(var(--confetti-spin, 180deg) * 0.6));
    }
    38% {
        opacity: 1;
        transform: translate3d(
            calc(var(--confetti-drift, 0px) * 0.65),
            calc(-1 * var(--confetti-rise, 140px)),
            0
        )
        scale(1)
        rotate(calc(var(--confetti-spin, 180deg) * 0.95));
    }
    65% {
        opacity: 0.85;
        transform: translate3d(
            calc(var(--confetti-drift, 0px) * 0.9),
            calc(-1 * var(--confetti-rise, 140px) * 0.2),
            0
        )
        scale(1.05)
        rotate(calc(var(--confetti-spin, 180deg) * 1.3));
    }
    100% {
        opacity: 0;
        transform: translate3d(
            var(--confetti-drift, 0px),
            var(--confetti-fall, 280px),
            0
        )
        scale(1.08)
        rotate(calc(var(--confetti-spin, 180deg) * 1.6));
    }
}
