/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, #e0f7fa, #f5f7fa);
  color: #2c3e50;
  line-height: 1.6;
  padding: 1.5rem;
}

.container {
  max-width: 680px;
  margin: auto;
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  text-align: center;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: #2980b9;
}

.subtitle {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin-bottom: 1.5rem;
}

form {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

input, select, button {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #bdc3c7;
  border-radius: 10px;
  width: 100%;
}

button {
  background: linear-gradient(to right, #27ae60, #2ecc71);
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

button:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

.note {
  font-size: 0.9rem;
  color: #95a5a6;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Results */
#results {
  margin-top: 2rem;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Medal Banner */
.medal {
  padding: 1rem;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.medal.gold   { background: linear-gradient(90deg, #ffd700, #ffed4e); color: #5d4037; }
.medal.silver { background: linear-gradient(90deg, #c0c0c0, #e0e0e0); color: #333; }
.medal.bronze { background: linear-gradient(90deg, #cd7f32, #e6b88c); color: #fff; }

/* Fancy List */
.fancy-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.fancy-list li {
  background: #f8f9fa;
  border-left: 6px solid #3498db;
  padding: 1.1rem;
  margin: 0.8rem 0;
  border-radius: 10px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.fancy-list li.weekly   { border-left-color: #2ecc71; }
.fancy-list li.monthly  { border-left-color: #f39c12; }
.fancy-list li.yearly   { border-left-color: #e74c3c; }

.fancy-list .value {
  font-weight: 800;
  color: #2c3e50;
}

.wisdom {
  font-style: italic;
  color: #8e44ad;
  margin-top: 1.5rem;
  font-size: 1.05rem;
}

.hidden {
  display: none;
}
