* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: linear-gradient(135deg, #ffeaa7, #fab1a0);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.screen {
  display: none;
  animation: fadeIn 0.5s ease;
  width: 100%;
  max-width: 600px;
}

.screen.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ЗАПИСКА */
.note {
  background: #fffbe6;
  padding: 60px 40px;
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  border: 3px dashed #f39c12;
  transition: transform 0.3s;
  position: relative;
}

.note::before {
  content: '';
  position: absolute;
  top: -15px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 25px;
  background: rgba(255, 200, 100, 0.5);
  border-radius: 3px;
}

.note:hover { transform: scale(1.03); }

.note-icon { font-size: 80px; margin-bottom: 20px; }

.note h1 {
  color: #d35400;
  font-size: 28px;
  line-height: 1.4;
  font-family: 'Comic Sans MS', cursive;
}

.hint {
  margin-top: 25px;
  color: #e67e22;
  font-size: 16px;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* КАРТОЧКИ */
.card {
  background: #fff;
  padding: 35px 30px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card h2 {
  color: #d35400;
  margin-bottom: 25px;
  text-align: center;
  font-size: 24px;
}

.subtitle {
  color: #e67e22;
  margin: 25px 0 12px;
  font-size: 16px;
  text-align: center;
  font-weight: normal;
}

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.options button {
  padding: 18px 12px;
  background: #fff5e6;
  border: 2px solid #ffd8a8;
  border-radius: 14px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
  color: #444;
}

.options button:hover {
  background: #ffd8a8;
  border-color: #f39c12;
  transform: translateY(-2px);
}

.options button:active { transform: scale(0.97); }

/* СВОЙ ВАРИАНТ */
.custom-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.custom-row input {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid #ffd8a8;
  border-radius: 14px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.custom-row input:focus { border-color: #f39c12; }

.custom-row button {
  padding: 14px 24px;
  background: #f39c12;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
}

.custom-row button:hover { background: #e67e22; }

/* ИТОГ */
.done { text-align: center; }

.done-icon { font-size: 70px; margin-bottom: 15px; }

.done h2 { color: #27ae60; }

#summaryText {
  color: #555;
  font-size: 17px;
  line-height: 1.6;
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

.small { color: #999; font-size: 14px; margin-bottom: 20px; }

.restart {
  padding: 12px 30px;
  background: #f39c12;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
}

.restart:hover { background: #e67e22; }

/* Мобилка */
@media (max-width: 480px) {
  .options { grid-template-columns: 1fr; }
  .note { padding: 40px 25px; }
  .note h1 { font-size: 22px; }
  .note-icon { font-size: 60px; }
  .card { padding: 25px 20px; }
}