:root {
    --bg: #0b1020;
    --panel: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --accent: #38bdf8; /* Sky Blue */
    --accent-hover: #0ea5e9;
    --font-stack: system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-stack);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Decor background blob */
.background-decor {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.15), transparent 40%),
                radial-gradient(circle at 20% 90%, rgba(167, 139, 250, 0.15), transparent 40%);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 600px;
}

.card {
    background: var(--panel);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease-out;
}

header { text-align: center; margin-bottom: 24px; }
h1 { color: var(--accent); margin-bottom: 8px; font-size: 1.8rem; }
.subtitle { color: var(--text-muted); }

/* Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-group { display: flex; flex-direction: column; }
.full-width { grid-column: 1 / -1; }

label {
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

input, select, textarea {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    color: white;
    font-family: inherit;
    transition: 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0,0,0,0.5);
}

/* Radio Buttons */
.radio-group {
    grid-column: 1 / -1;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}
.radios { display: flex; gap: 15px; }
.radio-label { cursor: pointer; display: flex; align-items: center; gap: 6px; }

/* Buttons */
.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
    transition: transform 0.1s;
}

.primary-btn {
    background: var(--accent);
    color: #0f172a;
}
.primary-btn:hover { background: var(--accent-hover); }

.secondary-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}
.secondary-btn:hover { background: var(--panel); }

/* Result Area */
.hidden { display: none; }
#story-content {
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 8px;
    line-height: 1.6;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent);
}

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

/* Mobile responsive */
@media (max-width: 500px) {
    .form-grid { grid-template-columns: 1fr; }
}
