
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800&family=Inter:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 20%, #17234b 0%, transparent 45%),
        #070a14;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

.topbar {
    height: 75px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #253354;
    background: rgba(7, 10, 20, 0.8);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span {
    color: #00eaff;
}

.status {
    color: #00f5b8;
    font-size: 11px;
    letter-spacing: 2px;
}

main {
    width: 100%;
    min-height: calc(100vh - 125px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 35px 20px;
}

.screen {
    display: none;
    width: 100%;
    max-width: 850px;
    animation: appear 0.4s ease;
}

.screen.active {
    display: block;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    text-align: center;
}

.subtitle {
    color: #00eaff;
    font-size: 12px;
    letter-spacing: 4px;
    margin-bottom: 18px;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(30px, 6vw, 55px);
    margin-bottom: 18px;
}

h1 span,
.editor-panel h1 span {
    color: #00eaff;
    text-shadow: 0 0 20px #00eaff66;
}

.description {
    color: #9ba9c7;
    margin-bottom: 45px;
}

.hero h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 17px;
    margin-bottom: 22px;
}

.categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 600px;
    margin: auto;
}

.category {
    padding: 22px 12px;
    border: 1px solid #263d67;
    border-radius: 12px;
    background: #111a30;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: 0.25s;
}

.category:hover {
    border-color: #00eaff;
    background: #152744;
    box-shadow: 0 0 20px #00eaff33;
    transform: translateY(-4px);
}

.category:last-child {
    grid-column: span 2;
}

.main-button,
.secondary-button {
    display: block;
    width: 100%;
    max-width: 350px;
    margin: 25px auto 0;
    padding: 16px;
    border: none;
    border-radius: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.2s;
}

.main-button {
    background: linear-gradient(100deg, #00c8ff, #6555ff);
    color: white;
    box-shadow: 0 0 20px #00c8ff33;
}

.main-button:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px #00c8ff77;
}

.secondary-button {
    background: transparent;
    border: 1px solid #52658e;
    color: #b9c9ed;
}

.secondary-button:hover {
    border-color: #00eaff;
    color: #00eaff;
}

.quiz-panel,
.result-panel,
.editor-panel {
    padding: 35px;
    border: 1px solid #263d67;
    border-radius: 18px;
    background: rgba(15, 24, 45, 0.94);
    box-shadow: 0 0 40px #00000055;
}

.quiz-info {
    display: flex;
    justify-content: space-between;
    color: #00eaff;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    margin-bottom: 15px;
}

.progress-bar {
    height: 7px;
    background: #26324c;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 35px;
}

#progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00eaff, #7857ff);
    transition: width 0.3s;
}

#question {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.answers {
    display: grid;
    gap: 12px;
}

.answer-button {
    padding: 17px;
    text-align: left;
    color: white;
    background: #172440;
    border: 1px solid #30466d;
    border-radius: 9px;
    cursor: pointer;
    transition: 0.2s;
}

.answer-button:hover:not(:disabled) {
    border-color: #00eaff;
    background: #203458;
}

.answer-button.correct {
    background: #104c3d;
    border-color: #00f5b8;
}

.answer-button.incorrect {
    background: #51232f;
    border-color: #ff526b;
}

.answer-button:disabled {
    cursor: default;
    opacity: 0.9;
}

#feedback {
    min-height: 25px;
    margin-top: 18px;
    font-weight: bold;
}

.score-circle {
    width: 180px;
    height: 180px;
    margin: 35px auto;
    border-radius: 50%;
    border: 4px solid #00eaff;
    box-shadow: 0 0 35px #00eaff66;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-circle span {
    font-family: 'Orbitron', sans-serif;
    font-size: 55px;
    color: #00eaff;
}

.score-circle small {
    color: #9ba9c7;
    letter-spacing: 3px;
}

.result-panel {
    text-align: center;
}

.editor-panel {
    max-width: 600px;
    margin: auto;
}

.editor-panel h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 25px;
}

.editor-panel input,
.editor-panel select {
    display: block;
    width: 100%;
    margin: 12px 0;
    padding: 14px;
    color: white;
    background: #101a30;
    border: 1px solid #30466d;
    border-radius: 8px;
    outline: none;
}

.editor-panel input:focus,
.editor-panel select:focus {
    border-color: #00eaff;
}

.editor-panel select option {
    background: #101a30;
}

.editor-panel label {
    display: block;
    color: #9ba9c7;
    margin-top: 15px;
}

#editor-message {
    text-align: center;
    color: #00f5b8;
    margin-top: 15px;
}

footer {
    text-align: center;
    padding: 20px;
    color: #53627e;
    font-size: 10px;
    letter-spacing: 3px;
}

@media (max-width: 600px) {
    .topbar {
        padding: 0 20px;
    }

    .status {
        font-size: 9px;
    }

    .categories {
        grid-template-columns: 1fr;
    }

    .category:last-child {
        grid-column: auto;
    }

    .quiz-panel,
    .result-panel,
    .editor-panel {
        padding: 22px;
    }

    #question {
        font-size: 20px;
    }
}
/* TIENDA NOVA */

.coin-display {
    color: #ffd84d;
    font-family: 'Orbitron', sans-serif;
    font-size: 17px;
    margin: 20px auto;
    text-align: center;
    text-shadow: 0 0 12px #ffd84d66;
}

.shop-panel {
    text-align: center;
    padding: 25px;
    border: 1px solid #263d67;
    border-radius: 18px;
    background: rgba(15, 24, 45, 0.94);
}

.shop-panel h1 {
    font-size: clamp(25px, 5vw, 40px);
}

.character-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.character-card {
    padding: 22px 15px;
    background: #111a30;
    border: 1px solid #30466d;
    border-radius: 14px;
    transition: 0.2s;
}

.character-card:hover {
    border-color: #00eaff;
    transform: translateY(-4px);
}

.character-avatar {
    font-size: 55px;
    margin-bottom: 12px;
}

.character-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    margin-bottom: 10px;
}

.character-price {
    color: #ffd84d;
    margin: 12px;
    font-size: 13px;
}

.character-card button {
    width: 100%;
    padding: 12px;
    color: white;
    background: linear-gradient(100deg, #00aeea, #6555ff);
    border: none;
    border-radius: 7px;
    cursor: pointer;
    font-weight: bold;
}

.character-card button:disabled {
    background: #26324c;
    color: #9ba9c7;
    cursor: default;
}

@media (max-width: 500px) {
    .character-list {
        grid-template-columns: 1fr;
    }
}