:root {
    --bg-color: #000000;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-color: #ffffff;
    --border-color: #ffffff;
    --input-bg: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Courier New", Courier, monospace; /* 90s tech/mystical feel */
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    /* Starry background using CSS gradients */
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 3px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 2px),
        radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 3px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
}

.container {
    width: 100%;
    max-width: 600px;
    background-color: #000000;
    padding: 2rem;
    border: 2px solid var(--border-color); /* Simple solid border */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2); /* Faint glow */
}

header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

h1 {
    font-family: "Times New Roman", Times, serif;
    font-size: 3rem;
    font-weight: normal;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px white;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    font-style: italic;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input, select {
    width: 100%;
    padding: 0.5rem;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 0; /* No rounded corners */
    color: var(--text-primary);
    font-family: "Courier New", Courier, monospace;
    font-size: 1rem;
}

input:focus, select:focus {
    outline: none;
    background-color: #1a1a1a;
    box-shadow: 0 0 5px white;
}

button {
    width: 100%;
    padding: 1rem;
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 0;
    font-family: "Courier New", Courier, monospace;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.2s ease;
}

button:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px white;
}

.result-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none !important;
}

.gauge-container {
    position: relative;
    width: 300px;
    height: 150px; /* Half circle */
    margin: 2rem auto;
    overflow: hidden;
}

.gauge-body {
    width: 300px;
    height: 150px;
    background: radial-gradient(circle at 50% 100%, #000 0%, #111 60%, #333 100%);
    border-top-left-radius: 150px;
    border-top-right-radius: 150px;
    border: 4px solid var(--border-color);
    border-bottom: none;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.gauge-markings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-top-left-radius: 150px;
    border-top-right-radius: 150px;
    /* Create tick marks using conic gradient */
    background: repeating-conic-gradient(
        from 270deg at 50% 100%,
        transparent 0deg,
        transparent 2deg,
        var(--text-secondary) 2deg,
        var(--text-secondary) 3deg,
        transparent 3deg,
        transparent 10deg
    );
    opacity: 0.5;
    mask-image: radial-gradient(circle at 50% 100%, transparent 60%, black 61%);
    -webkit-mask-image: radial-gradient(circle at 50% 100%, transparent 60%, black 61%);
}

.gauge-needle {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 4px;
    height: 140px;
    background-color: var(--accent-color);
    transform-origin: bottom center;
    transform: rotate(-90deg); /* Start at 0 (left) */
    transition: transform 1.5s cubic-bezier(0.4, 0.0, 0.2, 1); /* Smooth bounce */
    z-index: 10;
    box-shadow: 0 0 10px white;
}

.gauge-center {
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 11;
    box-shadow: 0 0 10px white;
}

.score-display-small {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Times New Roman", Times, serif;
    font-size: 2rem;
    color: var(--accent-color);
    text-shadow: 0 0 5px white;
    background-color: #000;
    padding: 0 10px;
    border-top: 1px solid #333;
}

.celestial-body {
    position: absolute;
    bottom: 10px;
    font-size: 2rem;
    z-index: 5;
    opacity: 0.8;
}

.sun {
    right: 20px;
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700;
}

.moon {
    left: 20px;
    color: #c0c0c0;
    text-shadow: 0 0 10px #c0c0c0;
}

.zodiac-symbol {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    color: var(--accent-color);
    filter: drop-shadow(0 0 5px white);
    z-index: 4;
    opacity: 0.8;
}

.zodiac-symbol svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.zodiac-sidebar {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 1;
}

.zodiac-sidebar.left {
    left: 2rem;
}

.zodiac-sidebar.right {
    right: 2rem;
}

.zodiac-icon {
    width: 60px;
    height: 60px;
    color: var(--text-secondary);
    opacity: 0.4;
    filter: blur(2px);
    transition: all 0.3s ease;
}

.zodiac-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.zodiac-icon:hover {
    color: var(--accent-color);
    opacity: 1;
    filter: blur(0) drop-shadow(0 0 5px white);
    transform: scale(1.2);
}

.status-text {
    font-family: "Courier New", Courier, monospace;
    font-size: 1.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    padding: 0.5rem 1rem;
    display: inline-block;
}

.description-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
    max-width: 80%;
    margin: 0 auto;
}

/* Loader - Simple blinking text or ASCII spinner */
.loader {
    font-family: "Courier New", Courier, monospace;
    font-size: 1.5rem;
    color: var(--accent-color);
}
.loader::after {
    content: "Consulting the Stars...";
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Status Colors - kept simple/monochrome or very desaturated */
.status-ABYSS { color: #a0a0a0; text-shadow: 0 0 5px #ff0000; }
.status-SHADOW { color: #b0b0b0; }
.status-TWILIGHT { color: #c0c0c0; }
.status-BALANCE { color: #ffffff; text-shadow: 0 0 5px white; }
.status-RADIANCE { color: #e0e0e0; text-shadow: 0 0 8px white; }
.status-CELESTIAL { color: #f0f0f0; text-shadow: 0 0 10px white; }
.status-TRANSCENDENT { color: #ffffff; text-shadow: 0 0 15px white; }

.purify-btn {
    margin-top: 2rem;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 1rem 2rem;
    font-family: "Courier New", Courier, monospace;
    font-size: 1.1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.purify-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--accent-color);
}

.purification-result {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
    font-style: italic;
    animation: fadeIn 1s ease;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
