* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: Inter, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #111827;
}

.hidden {
  display: none !important;
}

.desktop-app {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(35px);
  opacity: 0.45;
  pointer-events: none;
}

.glow-1 {
  width: 240px;
  height: 240px;
  background: #fbcfe8;
  top: 8%;
  left: 7%;
}

.glow-2 {
  width: 280px;
  height: 280px;
  background: #bfdbfe;
  bottom: 8%;
  right: 10%;
}

.card {
  width: min(760px, 95vw);
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.12);
  padding: clamp(20px, 3vw, 34px);
  z-index: 2;
  position: relative;
}

.step {
  margin: 0 0 12px;
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
}

.question {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
}

.options {
  margin-top: 28px;
  min-height: 62px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-green {
  background: #22c55e;
  color: #ffffff;
}

.btn-red {
  background: #ef4444;
  color: #ffffff;
}

.btn-soft {
  background: #e5e7eb;
  color: #111827;
}

.runaway {
  position: fixed;
  z-index: 55;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.15);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-card {
  width: min(560px, 95vw);
  max-height: 90vh;
  overflow: auto;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  padding: 22px;
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.22);
}

.modal-title {
  margin: 2px 0 12px;
  font-size: 28px;
  line-height: 1.2;
}

.modal-image {
  width: 100%;
  max-height: 55vh;
  object-fit: contain;
  border-radius: 15px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.modal-text {
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.4;
  white-space: pre-line;
}

.modal-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.final-note-wrap {
  width: 100%;
  display: grid;
  gap: 12px;
}

.final-note-label {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.final-note-input {
  width: 100%;
  min-height: 120px;
  max-height: 200px;
  resize: vertical;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}

.final-note-input:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.final-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.final-note-status {
  margin: 0;
  font-size: 14px;
  color: #374151;
  min-height: 20px;
}

.mobile-warning {
  width: 100%;
  height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: clamp(24px, 6vw, 34px);
  font-weight: 800;
  padding: 24px;
}
