
body {
    margin: 0;
    padding: 0;
    font-family: 'Orbitron', sans-serif;
    background: #000000;
    color: #fff;
    overflow-x: hidden;
}

canvas#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 20px #ff00ff;
}
header h1 {
    margin: 0;
    font-size: 28px;
    color: #ff80ab;
    text-shadow: 0 0 10px #ff4081, 0 0 20px #ff80ab;
}
.user-info a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}


.hud-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.hud-card {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #ff4081;
    border-radius: 15px;
    padding: 20px;
    width: 200px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px #ff4081, 0 0 30px #ff80ab;
    position: relative;
    overflow: hidden;
}
.hud-card h3,
.hud-card h4 {
    margin: 0 0 10px 0;
    font-weight: 700;
    color: #ff80ab;
    text-shadow: 0 0 5px #ff4081, 0 0 10px #ff80ab;
}
.hud-card p {
    margin: 0;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 0 5px #ff4081;
}

.hud-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px #ff80ab, 0 0 60px #ff4081, 0 0 90px #ff80ab;
}


.quiz-section {
    display: none;
    padding: 20px 40px;
    animation: fadeIn 1s;
}
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.quiz-header h2 {
    margin: 0;
    font-size: 24px;
    color: #ff80ab;
    text-shadow: 0 0 10px #ff4081, 0 0 20px #ff80ab;
}

#quiz-container {
    margin-top: 15px;
}
.quiz h4 {
    margin: 10px 0 5px 0;
}
.quiz label {
    display: block;
    margin: 5px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}
.quiz input[type="radio"] {
    margin-right: 8px;
}

button {
    background: #ff4081;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px #ff80ab, 0 0 20px #ff4081;
}
button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #ff80ab, 0 0 40px #ff4081;
}


.radial-timer {
    position: relative;
    width: 60px;
    height: 60px;
}
.radial-timer svg {
    transform: rotate(-90deg);
}
.radial-timer circle {
    fill: none;
    stroke: #fff;
    stroke-width: 4;
    opacity: 0.2;
}
#timer-progress {
    stroke: #ff4081;
    stroke-dasharray: 175.84;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}
.radial-timer span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: #ff80ab;
}


.score-popup {
    font-size: 24px;
    color: #00ffcc;
    text-align: center;
    margin-top: 15px;
    animation: neonGlow 1s ease forwards;
}
@keyframes neonGlow {
    0% { text-shadow: 0 0 5px #00ffcc, 0 0 10px #00ffcc; }
    100% { text-shadow: 0 0 20px #00ffcc, 0 0 40px #00ffcc; }
}


.hud-container {
    max-width: 400px;
    margin: 80px auto;
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px #ff4081, 0 0 40px #ff80ab;
}
.hud-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #ff80ab;
    text-shadow: 0 0 5px #ff4081, 0 0 10px #ff80ab;
}
.hud-container input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 10px;
    border: none;
}
.hud-container button {
    width: 100%;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 600px) {
    .hud-card { width: 100%; }
    header { flex-direction: column; align-items: flex-start; }
}

.slide-in {
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.slide-in-active {
    transform: translateX(0);
    opacity: 1;
}
