/* ── VARIÁVEIS ESPECÍFICAS DO MENTADIVINHE ───────────────────────────────── */
:root {
    --clue-bg:          #f0f9ff;
    --clue-border:      #bfdbfe;
    --clue-label-color: #6b7280;
    --clue-value-color: #1e40af;
    --clue-radius:      10px;
}

/* ── RESET & BASE ────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

/* ── GAME CONTAINER ──────────────────────────────────────────────────────── */
#game-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    gap: 12px;
}

/* ── CLUE CARDS ──────────────────────────────────────────────────────────── */
#clues-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.clue-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--clue-bg);
    border: 1.5px solid var(--clue-border);
    border-radius: var(--clue-radius);
    padding: 12px 16px;
    width: 100%;
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.clue-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* First clue is prominent */
.clue-card:first-child {
    border-color: #93c5fd;
}

.clue-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--clue-label-color);
}

.clue-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--clue-value-color);
}

/* Clue number badge */
.clue-card::before {
    content: attr(data-index);
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    margin-bottom: 2px;
}

/* ── INPUT AREA ──────────────────────────────────────────────────────────── */
#input-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
}

#input-area.hidden {
    display: none !important;
}

#attempts-display {
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
}

#attempts-display span {
    font-weight: 700;
    color: #374151;
}

#input-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

#guess-input {
    flex: 1;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    color: var(--text-color);
}

#guess-input:focus {
    border-color: #93c5fd;
}

#submit-btn {
    padding: 12px 20px;
    background-color: #1d4ed8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s;
}

#submit-btn:hover {
    background-color: #1e40af;
}

#submit-btn:active {
    background-color: #1e3a8a;
}

#reveal-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    text-decoration: underline;
    padding: 4px 0;
    transition: color 0.2s;
}

#reveal-btn:hover {
    color: #6b7280;
}

/* ── SHAKE ANIMATION ─────────────────────────────────────────────────────── */
.shake {
    animation: shake 0.45s;
}

@keyframes shake {
    0%   { transform: translateX(0); }
    15%  { transform: translateX(-6px); }
    30%  { transform: translateX(6px); }
    45%  { transform: translateX(-5px); }
    60%  { transform: translateX(5px); }
    75%  { transform: translateX(-3px); }
    90%  { transform: translateX(3px); }
    100% { transform: translateX(0); }
}
