* {
  box-sizing: border-box;
  font-family: inherit;
}

:root {
  --accent: #f4ec4d;
  --accent-dark: #c9c03e;
  --panel-bg: rgba(15, 15, 20, 0.78);
  --text: #f2f2f2;
  --text-dim: #b9b9c2;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Montserrat", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
}

body {
  background: url("../back.jpg") center center / cover no-repeat fixed;
  display: flex;
  flex-direction: column;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
}

.header__logo {
  height: 64px;
  width: auto;
}

.content {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.intro {
  background: var(--panel-bg);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 16px;
  text-align: center;
}

.intro p {
  margin: 0;
  color: var(--text-dim);
}

.welcome {
  background: var(--panel-bg);
  border-radius: 16px;
  padding: 28px 28px 24px;
  text-align: center;
}

.welcome h2 {
  margin: 0 0 14px;
  font-size: 24px;
  color: var(--accent);
}

.welcome p {
  margin: 0 0 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

.welcome p:last-of-type {
  margin-bottom: 22px;
}

.welcome strong {
  color: var(--text);
}

.welcome__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.welcome__actions .submit-btn {
  margin: 0;
}

.skip-btn {
  padding: 12px 32px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: transparent;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.skip-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--text);
}

.welcome {
  position: relative;
}

.auth__thief {
  position: absolute;
  top: -18px;
  right: -10px;
  width: 90px;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6));
  transform: rotate(8deg);
  pointer-events: auto;
}

.steam-btn {
  text-decoration: none;
  display: inline-block;
}

.auth__error {
  margin: 0;
  color: #ff8080;
  font-size: 14px;
}

.progress {
  margin-bottom: 20px;
  text-align: center;
}

.progress span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-dim);
}

.progress__bar {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  width: 10%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.25s ease;
}

.poll {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.question {
  display: none;
  background: var(--panel-bg);
  border-radius: 16px;
  padding: 20px 24px;
}

.question.active {
  display: block;
  animation: fade-in 0.25s ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question__title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.4;
}

.question--sas {
  position: relative;
}

.sas-guard {
  position: absolute;
  top: 0;
  right: 14px;
  width: 108px;
  height: auto;
  transform: translateY(-63%);
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.55));
}

.scale {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.scale button {
  flex: 1;
  min-width: 44px;
  padding: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.scale button:hover {
  border-color: var(--accent);
}

.scale button.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #10130c;
  font-weight: 700;
}

.yesno,
.choice {
  display: flex;
  gap: 12px;
}

.yesno button,
.choice button {
  flex: 1;
  padding: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.yesno button:hover,
.choice button:hover {
  border-color: var(--accent);
}

.yesno button.selected,
.choice button.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #10130c;
  font-weight: 700;
}

.text-input,
.comment {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
}

.comment {
  min-height: 70px;
  margin-top: 12px;
}

.text-input::placeholder,
.comment::placeholder {
  color: var(--text-dim);
}

.text-input:focus,
.comment:focus {
  outline: none;
  border-color: var(--accent);
}

.submit-btn,
.next-btn {
  display: block;
  margin: 16px auto 0;
  padding: 12px 40px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #10130c;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.submit-btn:hover,
.next-btn:hover {
  background: var(--accent-dark);
}

.submit-btn:active,
.next-btn:active {
  transform: scale(0.98);
}

.next-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.next-btn:disabled:hover {
  background: var(--accent);
}

.thanks {
  text-align: center;
  background: var(--panel-bg);
  border-radius: 16px;
  padding: 40px 28px;
}

.thanks h2 {
  margin-top: 0;
}

.hidden {
  display: none;
}

.footer {
  text-align: center;
  padding: 16px;
  color: var(--text-dim);
  font-size: 13px;
}

@media (max-width: 480px) {
  .header {
    padding: 16px 20px;
  }

  .header__logo {
    height: 44px;
  }

  .scale button {
    min-width: 36px;
    padding: 8px 0;
    font-size: 13px;
  }

  .sas-guard {
    display: none;
  }
}
