#main-field {
    max-width: 600px;
    margin: 2em auto;
    padding: 1.5em;
    background-color: var(--tableau);
    border-radius: 6px;
}

#setup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
}

#setup p {
  color: var(--text-color);
  text-align: center;
  line-height: 1.6;
}

.config-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
  flex-wrap: wrap;
  justify-content: center;
}

.config-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}

.config-group label {
  font-size: 0.8rem;
  color: var(--text-color);
}

.config-group input[type="number"] {
  width: 80px;
  background: var(--form-field);
  border: 1px solid var(--form-border);
  color: var(--text-color);
  font-size: 1rem;
  padding: 0.4rem 0.6rem;
  text-align: center;
  border-radius: 4px;
}

/* Universal button style */
button {
    background-color: var(--button-color);
    border: none;
    color: var(--form-field);
    padding: 0.75em 1.5em;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s ease-in-out;
    display: inline-block;
    text-align: center;
}

button:hover {
    background-color: var(--button-hover);
    box-shadow: 0 0 2px var(--button-shadow);
}

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

#session {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 780px;
  gap: 0.8rem;
}

#hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 0.85rem;
  color: #888;
  letter-spacing: 0.04em;
}

#timer { font-size: 1.1rem; color: #bbb; }

#progress-bar-wrap {
  width: 100%;
  height: 5px;
  background: #2a2a2a;
  border-radius: 3px;
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: #4a6a8a;
  border-radius: 3px;
  transition: width 1s linear;
}

#editor {
  width: 80%;
  height: 50vh;
  background: var(--form-field);
  border: 1px solid var(--form-border);
  color: var(--text-color);
  line-height: 1.8;
  padding: 1.4rem;
  resize: none;
  border-radius: 4px;
  outline: none;
  transition:
	filter 1s ease,
	text-shadow 1s ease,
	border-color 0.5s ease;
}

#editor.danger-low {
  filter: blur(0.5px);
  text-shadow: 0 0 6px rgba(180,30,30,0.4);
  border-color: #5a1a1a;
}

#editor.danger-mid {
  filter: blur(1.5px);
  text-shadow: 0 0 12px rgba(200,30,30,0.7);
  border-color: #8b1a1a;
}

#editor.danger-high {
  filter: blur(3px);
  text-shadow: 0 0 20px rgba(230,30,30,1);
  border-color: #cc2020;
}

#word-count { color: #555; font-size: 0.82rem; }

#completion {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  width: 100%;
  max-width: 780px;
  text-align: center;
}

#completion h2 {
  font-weight: normal;
  font-size: 1.5rem;
  color: var(--text-color);
}

#completion p { color: var(--text-color); font-size: 0.9rem; }

#saved-text {
  width: 80%;
  height: 50vh;
  background: var(--form-field);
  border: 1px solid var(--form-border);
  color: var(--text-color);
  line-height: 1.8;
  padding: 1.4rem;
  resize: none;
  border-radius: 4px;
  outline: none;
}

.button-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

#wiped {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

#wiped h2 {
  font-size: 2rem;
  color: var(--text-color);
  font-weight: normal;
}

#wiped p { line-height: 1.6; }