
* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --background: linear-gradient(135deg, #d4fc79, #96e6a1);
  --surface: #ffffff;
  --text: #24352b;
  --muted: #5e7065;
  --placeholder: #edf1ed;
  --placeholder-text: #718078;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: linear-gradient(135deg, #10251b, #182e28);
  --surface: #20372b;
  --text: #edf8f0;
  --muted: #b5c9bc;
  --placeholder: #344c3e;
  --placeholder-text: #b5c9bc;
}

body {
  margin: 0;
  padding: 24px 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
  background: var(--background);
  color: var(--text);
}

.container {
  width: min(92%, 520px);
  padding: 40px 24px;
  text-align: center;
  background: var(--surface);
  border-radius: 28px;
  box-shadow: 0 15px 40px #285c3b25;
}

h1 {
  margin-bottom: 10px;
  font-size: 32px;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 32px;
}

.numbers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.ball {
  width: 52px;
  height: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  font-size: 18px;
  box-shadow: 0 4px 8px #00000018;
  animation: pop 0.35s ease both;
}

.placeholder {
  width: 52px;
  height: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: var(--placeholder);
  color: var(--placeholder-text);
  font-size: 24px;
}

button {
  border: none;
  border-radius: 14px;
  padding: 16px 28px;
  background: #239653;
  color: white;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background: #187640;
  transform: translateY(-2px);
}

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

#message {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.theme-toggle {
  display: block;
  margin: 0 0 20px auto;
  padding: 10px 14px;
  background: var(--placeholder);
  color: var(--text);
  font-size: 14px;
}

.theme-toggle:hover {
  background: var(--placeholder);
}

button:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 4px;
}

.feedback {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--placeholder-text);
  text-align: left;
}

.feedback summary {
  cursor: pointer;
  font-weight: bold;
  padding: 8px 0;
}

.feedback-intro, .feedback-note, .feedback-status {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.feedback label {
  display: block;
  margin: 20px 0 8px;
  font-size: 14px;
  font-weight: bold;
}

.feedback label span {
  color: var(--muted);
  font-weight: normal;
}

.feedback input, .feedback select, .feedback textarea {
  width: 100%;
  border: 1px solid var(--placeholder-text);
  border-radius: 10px;
  padding: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.feedback textarea {
  resize: vertical;
  min-height: 120px;
}

.feedback input::placeholder, .feedback textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.feedback :is(input, select, textarea, summary):focus-visible {
  outline: 3px solid #239653;
  outline-offset: 3px;
}

#feedbackSubmit {
  width: 100%;
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.feedback-status:empty {
  margin: 0;
}

.feedback-status[data-state="error"] {
  color: #bc3030;
}

:root[data-theme="dark"] .feedback-status[data-state="error"] {
  color: #ffaaaa;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
