:root {
    --prometheus-blue: #7fdbff;
    --prometheus-blue-glow: rgba(127, 219, 255, 0.4);
    --bg-dark-metal: #0a0e14;
    --text-hud: #7fdbff;
    --text-primary: #cccccc;
    --border-color: rgba(127, 219, 255, 0.3);
    --font-display: 'Orbitron', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

html, body {
    background-color: var(--bg-dark-metal);
    color: var(--text-primary);
    font-family: var(--font-mono);
    width: 100vw; height: 100vh;
    margin: 0; display: flex; justify-content: center; align-items: center;
    overflow: hidden;
}

#background-canvas {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; z-index: 1;
}

.screen {
    display: none; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    flex-direction: column; justify-content: center; align-items: center;
    padding: 1rem; text-align: center;
    background: rgba(10, 14, 20, 0.85); backdrop-filter: blur(8px);
    z-index: 10; opacity: 0; transition: opacity 0.5s ease-in-out;
}
.screen.active { display: flex; opacity: 1; }

.modal-content {
    width: 90%; max-width: 600px;
    border: 1px solid var(--border-color);
    background: rgba(10, 14, 20, 0.95);
    box-shadow: 0 0 50px var(--prometheus-blue-glow), inset 0 0 25px rgba(127, 219, 255, 0.2);
    padding: 2rem; display: flex; flex-direction: column; align-items: center;
}

.modal-logo { max-width: 120px; margin-bottom: 1.5rem; opacity: 0.7; }

h2 {
    font-family: var(--font-display); color: var(--text-hud);
    font-size: clamp(1.5rem, 6vw, 2.5rem); text-shadow: 0 0 10px var(--prometheus-blue);
    margin: 0 0 1rem 0; letter-spacing: 2px; text-transform: uppercase;
}
p { line-height: 1.7; font-size: clamp(0.9rem, 3vw, 1.1rem); max-width: 500px; margin-left: auto; margin-right: auto; }

.action-button {
    font-family: var(--font-display); font-size: clamp(1rem, 4vw, 1.2rem);
    padding: 1rem 2rem; margin-top: 1.5rem;
    border: 1px solid var(--prometheus-blue); color: var(--prometheus-blue);
    background: transparent; cursor: pointer; text-shadow: 0 0 5px var(--prometheus-blue);
    box-shadow: 0 0 15px var(--prometheus-blue-glow), inset 0 0 10px rgba(127, 219, 255, 0.1);
    transition: all 0.2s ease;
}
.action-button:hover:not(:disabled) { background: var(--prometheus-blue); color: #000; text-shadow: none; }
.action-button:disabled { border-color: #555; color: #555; cursor: not-allowed; box-shadow: none; text-shadow: none; }

.input-field {
    font-family: var(--font-mono); background: #000;
    border: 1px solid var(--border-color); color: var(--text-hud);
    padding: 0.75rem; width: 80%; max-width: 400px;
    text-align: center; font-size: 1.2rem; margin-top: 1rem;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.6);
}
.input-field::placeholder { color: #888; }
.input-field:focus { outline: none; box-shadow: 0 0 10px var(--prometheus-blue-glow); }

#progress-container { width: 100%; margin-top: 2rem; }
#progress-label { text-transform: uppercase; letter-spacing: 3px; margin-bottom: 12px; font-size: 0.9em; color: var(--text-hud); }
.progress-bar-wrapper { border: 1px solid var(--border-color); padding: 2px; background: #000; }
.progress-bar { width: 0%; height: 10px; background: var(--prometheus-blue); box-shadow: 0 0 15px var(--prometheus-blue); transition: width 0.5s ease-out; }

.hash-text { color: var(--text-primary); font-size: 0.8rem; word-break: break-all; margin-top: 1.5rem; opacity: 0.6; }

#nursery-screen { background: none; backdrop-filter: none; z-index: 5; }
#app-container { width: 100%; height: 100%; display: flex; flex-direction: column; max-width: 800px; margin: 0 auto; box-sizing: border-box; padding: 1rem; opacity: 1; transition: opacity 0.5s ease-in-out; }
.app-header { padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); text-align: center; display: flex; align-items: center; justify-content: center; gap: 1rem; }
.header-logo { height: 40px; width: auto; opacity: 0.7; }
#idjinn-name-header { font-size: 1.8rem; margin: 0; color: var(--text-hud); }
#growth-info { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; }
#idjinn-container { flex-grow: 1; display: flex; justify-content: center; align-items: center; min-height: 200px; }
#idjinn-visual-canvas { width: 250px; height: 250px; }

@keyframes core-activation-pulse {
  0% { box-shadow: 0 0 20px rgba(127, 219, 255, 0.5); transform: scale(1); }
  50% { box-shadow: 0 0 80px rgba(255, 255, 255, 1), 0 0 60px var(--prometheus-blue); transform: scale(1.05); }
  100% { box-shadow: 0 0 20px rgba(127, 219, 255, 0.5); transform: scale(1); }
}
.core-activating { animation: core-activation-pulse 0.15s infinite; }

#chat-container { border: 1px solid var(--border-color); background: rgba(10, 14, 20, 0.7); height: 30vh; display: flex; flex-direction: column; }
#chat-log { flex-grow: 1; overflow-y: auto; padding: 15px; font-size: 1rem; }
.user-message, .idjinn-message, .system-message { margin-bottom: 10px; animation: fadeIn 0.5s; padding: 8px 12px; border-radius: 5px; max-width: 80%; }
.user-message { background: rgba(40, 50, 70, 0.5); margin-left: auto; }
.idjinn-message { background: rgba(127, 219, 255, 0.1); }
.system-message { background: none; color: #ffb700; font-style: italic; text-align: center; font-size: 0.9rem; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

#chat-form { display: flex; padding: 10px; border-top: 1px solid var(--border-color); }
#chat-input { flex-grow: 1; margin: 0; border-radius: 0; }
.send-button { font-family: var(--font-display); font-size: 1.2rem; background-color: var(--text-hud); color: var(--bg-dark-metal); border: none; cursor: pointer; transition: all 0.2s; padding: 0 1.5rem; }
.send-button:hover { background-color: white; }

.nursery-footer { display: flex; flex-direction: column; align-items: center; padding-top: 1rem; gap: 1rem; }
.boost-btn { margin: 0; }

.promo-container {
    width: 100%;
    max-width: 500px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#promo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 10px var(--prometheus-blue-glow);
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}