:root {
    --bg-color: #0d0e15;
    --panel-bg: rgba(23, 25, 35, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary: #4facfe;
    --secondary: #00f2fe;
    --accent: #f83600;
    --text-main: #ffffff;
    --text-muted: #a0aabf;
    --success: #00b09b;
    --warning: #fada5e;
    --danger: #ff4b2b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Fondos dinámicos */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -200px;
    left: -100px;
    border-radius: 50%;
    filter: blur(60px);
    animation: float 10s infinite ease-in-out alternate;
}

.blob-2 {
    background: radial-gradient(circle, rgba(248, 54, 0, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    top: auto;
    bottom: -100px;
    left: auto;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translateY(0px) scale(1);
    }

    100% {
        transform: translateY(50px) scale(1.1);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

header h1 span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media(min-width: 850px) {
    .grid-layout {
        grid-template-columns: 1.2fr 1fr;
    }
}

.glass-panel {
    position: relative;
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.glass-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    display: none;
    /* Removed for Choices.js custom arrow */
}

select {
    width: 100%;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    outline: none;
    transition: all 0.3s ease;
}

select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.3);
}

select option {
    background-color: #1a1c23;
    color: white;
}

.glow-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.glow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 172, 254, 0.4);
}

.glow-btn:active {
    transform: translateY(1px);
}

/* --- Game Requirements Box --- */
.game-reqs-container {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    margin-top: -10px;
    /* Pull it slightly closer to the select box */
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.reqs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.req-column h4 {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
}

.req-column ul {
    list-style: none;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.req-column ul li {
    margin-bottom: 6px;
    line-height: 1.3;
}

.req-label {
    color: white;
    font-weight: 600;
}

/* Resultados */
.result-section {
    text-align: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.result-section.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.verdict-banner {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.verdict-banner h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.fps-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.fps-meter {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 1s cubic-bezier(0.1, 0.7, 0.1, 1);
}

.fps-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

#fps-value {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
}

.fps-label {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.resolution-info {
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.component-analysis {
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 16px;
}

.component-analysis h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.comp-stat {
    margin-bottom: 15px;
}

.comp-name {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.status-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.status-bar .fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 1s ease, background-color 1s ease;
}

/* --- FPS Breakdown --- */
.fps-breakdown {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 15px 20px;
    margin-top: 20px;
}

.fps-breakdown h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.fps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fps-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.fps-setting {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.fps-item-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease backwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Customizing Choices.js for Dark Theme */
.choices__inner {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 10px 15px !important;
    min-height: auto;
    font-size: 1rem;
}

.choices[data-type*="select-one"] .choices__input {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 5px;
    padding: 8px;
    border-radius: 6px;
}

.choices__list--dropdown {
    background-color: #1a1c23 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    margin-top: 5px !important;
    color: white !important;
    z-index: 10 !important;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
    background-color: rgba(79, 172, 254, 0.2) !important;
}

.choices__list--dropdown .choices__item {
    color: white !important;
    font-size: 0.95rem;
}

.choices__placeholder {
    opacity: 0.8 !important;
    color: white !important;
}

.choices[data-type*="select-one"]::after {
    border-color: rgba(255, 255, 255, 0.5) transparent transparent transparent !important;
    right: 20px !important;
}

.choices[data-type*="select-one"].is-open::after {
    border-color: transparent transparent rgba(255, 255, 255, 0.5) transparent !important;
}