body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'VT323', monospace;
    background-color: #0c0a1a;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image: url('background.png');
    background-size: cover;
}

#app-container {
    width: 90%;
    max-width: 600px;
    background: rgba(26, 20, 51, 0.85);
    border: 3px solid #ff00ff;
    border-radius: 15px;
    box-shadow: 0 0 20px #ff00ff, 0 0 30px #00ffff inset;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(5px);
}

header h1 {
    font-family: 'Press Start 2P', cursive;
    color: #00ffff;
    text-shadow: 3px 3px 0px #ff00ff;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

header p {
    color: #eee;
    font-size: 1.2rem;
    margin-top: 0;
}

.input-area {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 2rem 0;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 1.1rem;
    color: #00ffff;
    margin-bottom: 0.5rem;
}

.input-group input {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    padding: 0.5rem;
    border: 2px solid #ff00ff;
    background-color: #1a1433;
    color: #fff;
    border-radius: 5px;
    width: 180px;
    text-align: center;
}

.input-group input:focus {
    outline: none;
    box-shadow: 0 0 10px #00ffff;
}

.heart-connector {
    font-family: 'Press Start 2P', cursive;
    font-size: 2rem;
    color: #ff00ff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

#calculate-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    color: #1a1433;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

#calculate-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #00ffff;
}

#calculate-btn:active {
    transform: scale(0.95);
}

.hidden {
    display: none !important;
}

#loader {
    margin-top: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #00ffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

#results-container {
    margin-top: 2rem;
    animation: fadeIn 1s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.score-container {
    font-family: 'Press Start 2P', cursive;
    font-size: 5rem;
    color: #00ffff;
    text-shadow: 4px 4px 0px #ff00ff;
    margin-bottom: 1rem;
}

.score-container p {
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    color: #fff;
    text-shadow: none;
    margin: 0;
}

#summary {
    font-size: 1.3rem;
    font-style: italic;
    color: #eee;
    margin-bottom: 2rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

#analysis-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.analysis-category {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #00ffff;
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
}

.analysis-category h3 {
    margin: 0 0 0.5rem;
    color: #ff00ff;
    font-family: 'Press Start 2P', cursive;
    font-size: 1.1rem;
}

.analysis-category p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

