* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: #fff8dc;
  color: #2c1a0e;
  min-height: 100vh;
}
.header {
  background: linear-gradient(135deg, #8b4513, #6f370f);
  color: #daa520;
  text-align: center;
  padding: 2rem 1rem;
  border-bottom: 4px solid #daa520;
}
.header h1 {
  font-size: 2.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  letter-spacing: 2px;
}
.header .subtitle {
  font-size: 1rem;
  font-style: italic;
  opacity: 0.9;
  margin-top: 0.5rem;
}
.header .badge {
  display: inline-block;
  background: #daa520;
  color: #2c1a0e;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 0.5rem;
  font-weight: bold;
  letter-spacing: 1px;
}
.main-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 600px) {
  .main-container {
    grid-template-columns: 1fr;
  }
}
.card {
  background: #fff;
  border: 2px solid #8b4513;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 4px 4px 0px #8b4513;
}
.card h2 {
  color: #8b4513;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px dashed #daa520;
}
.card h3 {
  color: #8b4513;
  font-size: 1rem;
  margin: 0.75rem 0 0.5rem;
}
.input-group {
  margin-bottom: 1rem;
}
.input-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.3rem;
  color: #8b4513;
  font-size: 0.9rem;
}
.input-group input,
.input-group textarea {
  width: 100%;
  padding: 0.5rem;
  border: 2px solid #8b4513;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  background: #fff8dc;
}
.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: #daa520;
  background: #fff;
}
.input-group .hint {
  font-size: 0.75rem;
  color: #b56b3a;
  margin-top: 0.3rem;
  font-style: italic;
}
.btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  font-weight: bold;
  transition: all 0.2s;
}
.btn-primary {
  background: #8b4513;
  color: #fff;
  border: 2px solid #7d3e11;
}
.btn-primary:hover {
  background: #7d3e11;
  transform: translateY(-1px);
}
.btn-gold {
  background: #daa520;
  color: #2c1a0e;
  border: 2px solid #b98c1b;
}
.btn-gold:hover {
  background: #c4951d;
}
.tablature-output {
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  background: #2c1a0e;
  color: #daa520;
  padding: 1rem;
  border-radius: 4px;
  letter-spacing: 3px;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-all;
  text-align: center;
}
.instructions-list {
  list-style: none;
  padding: 0;
}
.instructions-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #ea9c64;
  font-size: 0.85rem;
}
.instructions-list li:last-child {
  border-bottom: none;
}
.score-display {
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, #daa520, #e4b84a);
  border-radius: 6px;
  margin-top: 1rem;
}
.score-display .score-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #2c1a0e;
  display: block;
}
.score-display .rank-name {
  font-size: 0.85rem;
  color: #28170d;
  font-style: italic;
  margin-top: 0.3rem;
}
.complexity-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-top: 0.5rem;
}
.complexity-badge.beginner {
  background: #90ee90;
  color: #006400;
}
.complexity-badge.intermediate {
  background: #ffd700;
  color: #8b4513;
}
.complexity-badge.advanced {
  background: #ff8c00;
  color: #fff;
}
.complexity-badge.legendary {
  background: linear-gradient(45deg, #ffd700, #ff4500);
  color: #fff;
  animation: pulse 1s infinite;
}
.leaderboard {
  grid-column: 1/-1;
}
.leaderboard table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.leaderboard table th {
  background: #8b4513;
  color: #daa520;
  padding: 0.6rem;
  text-align: left;
}
.leaderboard table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #ea9c64;
}
.leaderboard table tr:nth-child(even) td {
  background: #fff8dd;
}
.leaderboard table tr:first-child td {
  background: linear-gradient(90deg, #e8c160, transparent);
  font-weight: bold;
}
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
  margin-top: 0.5rem;
}
@media (max-width: 700px) {
  .schedule-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.schedule-day {
  background: #fff8dd;
  border: 1px solid #8b4513;
  border-radius: 4px;
  padding: 0.4rem;
  font-size: 0.7rem;
  text-align: center;
}
.schedule-day .day-name {
  font-weight: bold;
  color: #8b4513;
  display: block;
  margin-bottom: 0.2rem;
}
.schedule-day .day-intensity {
  font-size: 0.65rem;
  color: #93572f;
}
.nostril-diagram {
  text-align: center;
  font-size: 0.8rem;
  padding: 1rem;
  background: #2c1a0e;
  color: #daa520;
  border-radius: 6px;
  font-family: monospace;
  white-space: pre;
  line-height: 1.6;
}
.footer {
  text-align: center;
  padding: 2rem;
  color: #b56b3a;
  font-size: 0.8rem;
  font-style: italic;
  border-top: 2px dashed #daa520;
  margin-top: 2rem;
}
@-moz-keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
@-webkit-keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
@-o-keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
