:root {
  font-size: 16px;
  font-family: 'Nunito', sans-serif;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #5f6c76;
  --primary: #0a7a52;
  --primary-strong: #085f40;
  --border: #d6e2de;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f0f7f3 0%, #f8fbf9 40%, #ffffff 100%);
  color: var(--text);
}

#header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #0f5d42;
  color: #f2f8f5;
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#header-top {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
}

#header-title {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  margin-top: 6px;
}

#header-timer {
  margin-top: 8px;
}

.timer-shell {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(242, 248, 245, 0.26);
  overflow: hidden;
}

.timer-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #8de7be 0%, #d8ffe9 100%);
}

#app {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px;
}

.screen {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 1px 5px rgba(15, 40, 33, 0.08);
}

.screen.active {
  display: block;
}

.hidden {
  display: none;
}

h2 {
  margin: 4px 0 12px 0;
}

label {
  display: block;
  margin: 8px 0 6px 0;
  font-weight: 700;
}

input[type='text'] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #b6c7c0;
  border-radius: 8px;
  padding: 11px 10px;
  font-size: 18px;
  margin-bottom: 6px;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 18px;
  cursor: pointer;
}

button:disabled {
  opacity: 0.45;
  cursor: default;
}

button.primary {
  background: var(--primary);
  color: white;
  margin-top: 10px;
}

button.primary:hover:not(:disabled) {
  background: var(--primary-strong);
}

button.secondary {
  background: #e8ecea;
  color: #213027;
  margin-top: 10px;
}

.button-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.vote-button {
  width: 100%;
  text-align: left;
  background: #eff7f3;
  color: #103828;
  border: 1px solid #c7ded4;
}

.vote-button.selected {
  background: #d4eee2;
  border-color: #3d8b6a;
}

.note {
  color: var(--muted);
  font-size: 15px;
}

.small-row {
  margin-top: 10px;
}

#footer-actions {
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 12px 20px 12px;
}

#logout {
  display: none;
}

@media (max-width: 640px) {
  #header-title {
    font-size: 24px;
  }

  button {
    font-size: 17px;
  }

  input[type='text'] {
    font-size: 17px;
  }
}
