/* FantasIA – Shared styles */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #0a0a12;
    --bg-card: #16162a;
    --bg-card-light: #1e1e3a;
    --accent: #c8a24e;
    --accent-glow: #e8c45e;
    --text: #e8e8f0;
    --text-dim: #8888a0;
    --hp-green: #4ecb71;
    --hp-red: #e74c4c;
    --hp-yellow: #e8c44e;
    --border: #2a2a4a;
    --radius: 12px;
    --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    background: var(--bg-dark);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    /*overflow: hidden;*/
}

h1, h2, h3 { font-family: 'Cinzel', serif; }

.game-title {
    font-size: 2.5rem;
    color: var(--accent);
    text-shadow: 0 0 30px rgba(200, 162, 78, 0.3);
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.btn-primary {
    background: var(--accent);
    color: #0a0a12;
}
.btn-primary:hover:not(:disabled) {
    background: var(--accent-glow);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(200, 162, 78, 0.3);
}
.btn-large {
    padding: 16px 40px;
    font-size: 1.2rem;
}
.btn-action {
    background: var(--bg-card-light);
    color: var(--text);
    border: 1px solid var(--border);
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    margin-bottom: 6px;
}
.btn-action:hover:not(:disabled) {
    background: var(--accent);
    color: #0a0a12;
    border-color: var(--accent);
}
.btn-action.selected {
    background: var(--accent);
    color: #0a0a12;
    border-color: var(--accent-glow);
}

/* Inputs */
input[type="text"], textarea, .input-code {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}
input[type="text"]:focus, textarea:focus, .input-code:focus {
    border-color: var(--accent);
}
.input-code {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* Utility */
.screen { display: none; }
.screen.active { display: flex; flex-direction: column; }

.spinner {
    width: 40px; height: 40px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* HP bar */
.hp-bar-container {
    width: 100%;
    height: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
}
.hp-fill {
    height: 100%;
    background: var(--hp-green);
    transition: width 0.5s ease;
    border-radius: 4px;
}

label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: var(--text-dim);
    font-size: 0.85rem;
}
.form-group {
    margin-bottom: 12px;
}
