body {
  background: #faf9f7;
  font-family: 'Open Sans', sans-serif;
  color: #2c2c46;
  margin: 0;
  padding: 0;
}

.container {
  margin: 15px auto 0 auto; 
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 1px;
  font-family: 'Playfair Display', serif;
  color: #45486b;
}

.options-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(44,44,70,0.11);
  padding: 28px 30px 22px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 22px;
  width: 100%;
}

.options-list {
  margin-bottom: 14px;
  width: 100%;
}

.option-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.option-input {
  font-size: 1.15rem;
  padding: 7px 12px;
  border: 1px solid #e4e4f1;
  border-radius: 6px;
  outline: none;
  margin-right: 7px;
  flex: 1;
  transition: border .2s;
  font-family: 'Open Sans', sans-serif;
}

.option-input:focus {
  border-color: #fac93c;
}

.btn {
  background: #fac93c;
  color: #2c2c46;
  font-weight: 500;
  border: none;
  outline: none;
  padding: 9px 24px;
  border-radius: 8px;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(44,44,70,0.07);
  transition: background .2s;
  margin: 0 3px;
  font-family: 'Open Sans', sans-serif;
}

.btn:hover {
  background: #ffd363;
}

.add-btn {
  background: #4d4975;
  color: #fff;
  padding: 8px 18px;
  margin-top: 3px;
  font-size: 1.15rem;
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
}

.add-btn:hover {
  background: #323055;
}

.remove-btn {
  background: #ffe7b3;
  color: #c99018;
  font-size: 1.15rem;
  padding: 2px 9px;
  border-radius: 100px;
  border: none;
  outline: none;
  margin-left: 1px;
  cursor: pointer;
  transition: background .2s;
  font-family: 'Open Sans', sans-serif;
}

.remove-btn:hover {
  background: #ffe2a6;
}

.result-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  min-height: 76px;
}

.result-circle {
  background: #232348;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  height: 50px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 2px 4px 20px rgba(44,44,70,0.10);
  margin-bottom: 0;
  margin-top: 0;
  transition: all 0.3s ease;
  border: 4px solid #fac93c;
  letter-spacing: 2px;
  animation: popResult 0.4s cubic-bezier(.54,1.4,.4,1);
  font-family: 'Playfair Display', serif;
  text-align: center;
  padding: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.1;
  min-width: 95px;
}

@keyframes popResult {
  0% { transform: scale(0.6); opacity:0.3; }
  80% { transform: scale(1.15);}
  100% { transform: scale(1); opacity:1;}
}

.stats-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(44,44,70,0.09);
  padding: 24px 34px 15px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 1rem;
}

.stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 8px;
}

.stats-title {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  font-family: 'Playfair Display', serif;
  color: #45486b;
  margin: 0;
}

.reset-btn {
  background: #ffe7b3;
  color: #c99018;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.2s ease;
  font-family: 'Open Sans', sans-serif;
}

.reset-btn:hover {
  background: #fac93c;
  color: #2c2c46;
  transform: scale(1.1);
}

.reset-btn:active {
  transform: scale(0.95);
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 37px;
  width: 100%;
  margin: 7px 0 9px 0;
}

/* Blurred horizontal line */
.blurred-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fac93c, transparent);
  margin: 15px 0;
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(250, 201, 60, 0.4);
  opacity: 0.7;
}

.stat {
  text-align: center;
}

.stat-number {
  color: #fac93c;
  font-size: 2.5rem;
  font-weight: bold;
  letter-spacing: 1px;
  font-family: 'Playfair Display', serif;
}

.stat-label {
  color: #32306d;
  font-size: 1rem;
  margin-top: 2px;
  letter-spacing: 0.3px;
  font-weight: 500;
  font-family: 'Open Sans', sans-serif;
}

.history-section {
  margin-top: 5px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.history-title {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 6px;
  font-family: 'Playfair Display', serif;
  color: #45486b;
}

.history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: 8px;
  justify-content: center;
  width: 100%;
}

.history-item {
  background: #fff8e0;
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 1.15rem;
  color: #6a5411;
  box-shadow: 0 1px 8px rgba(44,44,70,0.07);
  font-weight: 500;
  font-family: 'Open Sans', sans-serif;
}

.footer {
  text-align: center;
  padding: 30px 0 20px 0;
  background: #22223b;
  color: #eae8f1;
  margin-top: 62px;
  letter-spacing: 0.2px;
  font-family: 'Open Sans', sans-serif;
  width: 100%;
  font-size: 1rem;
}

.footer a {
  color: #ffd363;
  text-decoration: underline;
  font-weight: bold;
  font-size: 1rem;
}

@media (max-width: 700px) {
  .container {
    max-width: 99vw;
    padding: 0 10px;
  }
  
  .options-card, .stats-card {
    padding: 18px 8px !important;
  }
  
  .result-circle {
    width: 79px; 
    height: 79px; 
    font-size: 1.4rem;
    min-width: 79px;
  }
  
  .footer {
    font-size: 0.9rem;
    padding: 25px 0 18px 0;
  }
  
  .footer a {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .result-circle {
    font-size: 1.2rem;
    width: 70px;
    height: 70px;
    min-width: 70px;
    padding: 6px;
  }
  
  .footer {
    font-size: 0.8rem;
    padding: 20px 0 15px 0;
  }
  
  .footer a {
    font-size: 0.8rem;
  }
}