:root {
    --bg-main: #181215;
    --bg-card: #22191e;
    --bg-button: #2d2229;
    --bg-button-hover: #3d2d37;
    --accent: #ff75a0;
    --accent-dim: rgba(255, 117, 160, 0.15);
    --text-main: #f5ecef;
    --text-muted: #b59fa9;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Fira Code', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    text-transform: lowercase;
}

.container {
    text-align: center;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 440px;
    border: 1px solid #33252d;
}

h1 {
    font-size: 1.3rem;
    font-weight: normal;
    letter-spacing: 0.02em;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

#timer-display {
    font-size: 5.5rem;
    font-weight: normal;
    letter-spacing: -0.02em;
    margin: 1rem 0;
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-dim);
}

.controls {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 2rem;
}

.controls button {
    padding: 12px 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--bg-button);
    color: var(--text-main);
    font-family: 'Georgia', serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.controls button:hover {
    background: var(--bg-button-hover);
    border-color: #4d3a46;
}

.controls button:active {
    transform: scale(0.98);
}

#exercise-area {
    background: var(--bg-main);
    border-radius: 12px;
    padding: 20px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #231b1f;
    margin-bottom: 1.5rem;
}

#prompt {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
    font-style: italic;
}

#stop-btn {
    width: 100%;
    background: transparent;
    color: #ff5c7c;
    border: 1px solid rgba(255, 92, 124, 0.2);
    padding: 12px 0;
    border-radius: 8px;
    font-family: 'Fira Code', serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

#stop-btn:hover {
    background: rgba(255, 92, 124, 0.1);
    border-color: #ff5c7c;
}

.brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.brand-icon {
    font-size: 2rem;
    color: var(--accent); 
    filter: drop-shadow(0 0 10px var(--accent-dim));
}

h1 {
    font-size: 1.1rem;
    font-weight: normal;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 0;
}

/* ... mantenha o estilo anterior ... */

#generate-btn {
    width: 100%;
    background: var(--accent);
    color: var(--bg-main);
    border: none;
    padding: 14px 0;
    border-radius: 8px;
    font-family: 'Georgia', serif;
    font-size: 1.05rem;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#generate-btn:hover {
    background: #ff94b8;
    box-shadow: 0 0 15px var(--accent-dim);
}

#generate-btn:active {
    transform: scale(0.98);
}

#timer-display {
    /* reduzi um pouquinho a margem para equilibrar o novo layout */
    font-size: 5.5rem;
    font-weight: normal;
    letter-spacing: -0.02em;
    margin: 0.5rem 0;
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-dim);
}

/* ... o resto continua igual ... */

/* ... mantenha o estilo anterior ... */

.custom-timer {
    display: flex;
    gap: 8px;
    margin-bottom: 2rem;
}

.custom-timer input {
    flex: 1;
    background: var(--bg-main);
    border: 1px solid #33252d;
    border-radius: 8px;
    color: var(--text-main);
    padding: 10px;
    font-family: 'Georgia', serif;
    font-size: 0.95rem;
    text-align: center;
    outline: none;
    transition: border-color 0.2s ease;
}

.custom-timer input:focus {
    border-color: var(--accent);
}

/* remove as setinhas nativas do input de número para manter o visual limpo */
.custom-timer input::-webkit-outer-spin-button,
.custom-timer input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-timer button {
    flex: 2;
    background: transparent;
    border: 1px solid var(--bg-button-hover);
    color: var(--text-muted);
    border-radius: 8px;
    font-family: 'Georgia', serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-timer button:hover {
    background: var(--bg-button-hover);
    color: var(--text-main);
    border-color: #4d3a46;
}

.custom-timer button:active {
    transform: scale(0.98);
}

/* ... o resto continua igual ... */

/* ... mantenha tudo que já existia ... */

#prompt-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

#style-challenge {
    font-size: 0.9rem;
    color: var(--accent);
    margin: 0;
    padding-top: 12px;
    border-top: 1px dashed rgba(181, 159, 169, 0.2); /* linha pontilhada sutil */
    font-weight: bold;
    letter-spacing: 0.05em;
}