body {
  background: #f8f9fa;
  font-family: 'Noto Sans KR', sans-serif;
  color: #222;
  margin: 0;
  min-height: 100vh;
}
.sp-header {
  background: linear-gradient(to right, rgba(255, 78, 255, 1), rgba(153, 179, 255, 1));
  color: white;
  padding: 30px 0 20px 0;
  text-align: center;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 8px 24px rgba(108,99,255,0.08);
  margin-bottom: 30px;
}
.sp-header h1 {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0 0 10px 0;
  letter-spacing: 1px;
}
.sp-header p {
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.9;
}
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 35px;
  background: #f3f4fa;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(108,99,255,0.07);
  padding: 18px 0 10px 0;
}
.category-btn {
  background: linear-gradient(135deg, #fff, #ece9fc);
  color: #6C63FF;
  border: 2px solid #6C63FF;
  border-radius: 18px;
  padding: 18px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(108,99,255,0.07);
  outline: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.category-btn.active, .category-btn:hover {
  background: linear-gradient(to right, rgba(255, 78, 255, 1), rgba(153, 179, 255, 1));
  color: #fff;
  border-color: #43E97B;
  box-shadow: 0 4px 16px rgba(67,233,123,0.13);
}
.category-btn .point {
  background: linear-gradient(to right, rgba(223, 255, 94, 1), rgba(246, 255, 156, 1));
  color: #333;
  border-radius: 8px;
  padding: 2px 8px;
  font-weight: 700;
  margin-left: 8px;
  font-size: 0.95em;
}
.practice-section {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(108,99,255,0.07);
  padding: 35px 30px 30px 30px;
  min-height: 350px;
  text-align: center;
}
.practice-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #6C63FF;
  margin-bottom: 18px;
}
.practice-sentence {
  font-size: 1.7rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.practice-translation {
  font-size: 1.1rem;
  color: #888;
  margin-bottom: 25px;
}
.practice-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
  background: #f3f4fa;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(108,99,255,0.07);
  padding: 10px 0;
}
.practice-controls button {
  background: linear-gradient(to right, rgba(255, 78, 255, 1), rgba(153, 179, 255, 1));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(67,233,123,0.09);
  display: flex;
  align-items: center;
  gap: 7px;
}
.practice-controls button .point {
  background: linear-gradient(to right, rgba(223, 255, 94, 1), rgba(246, 255, 156, 1));
  color: #333;
  border-radius: 8px;
  padding: 2px 8px;
  font-weight: 700;
  margin-left: 8px;
  font-size: 0.95em;
}
.practice-controls button:hover {
  background: linear-gradient(to right, rgba(223, 255, 94, 1), rgba(246, 255, 156, 1));
  color: #333;
}
.practice-feedback {
  margin-top: 18px;
  font-size: 1.1rem;
  color: #43E97B;
  font-weight: 600;
  min-height: 24px;
}
@media (max-width: 600px) {
  .practice-section {
    padding: 18px 6px 18px 6px;
  }
  .sp-header h1 {
    font-size: 1.3rem;
  }
  .category-btn {
    padding: 10px 12px;
    font-size: 0.95rem;
  }
  .practice-sentence {
    font-size: 1.1rem;
  }
}
.category-btn.active, .category-btn:hover {
  background: linear-gradient(to right, rgba(255, 78, 255, 1), rgba(153, 179, 255, 1));
  color: #fff;
  border-color: #e6e94f;
  box-shadow: 0 4px 16px rgba(223,255,94,0.18);
}
.category-btn.active, .category-btn:hover {
  background: linear-gradient(to right, rgba(255, 78, 255, 1), rgba(153, 179, 255, 1));
  color: #fff;
  border-color: #e6e94f;
  box-shadow: 0 4px 16px rgba(223,255,94,0.18);
}
.practice-next-line {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}
#next-btn {
  background: linear-gradient(to right, rgba(255, 78, 255, 1), rgba(153, 179, 255, 1));
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(153,179,255,0.13);
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 10px;
}
#next-btn:hover {
  background: linear-gradient(to right, rgba(223, 255, 94, 1), rgba(246, 255, 156, 1));
  color: #333;
  box-shadow: 0 6px 20px rgba(223,255,94,0.18);
}
.listen-icon-btn {
  background: linear-gradient(to right, rgba(255, 78, 255, 1), rgba(153, 179, 255, 1));
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(153,179,255,0.13);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.listen-icon-btn:hover {
  background: linear-gradient(to right, rgba(223, 255, 94, 1), rgba(246, 255, 156, 1));
  color: #333;
  box-shadow: 0 4px 16px rgba(223,255,94,0.18);
}
.practice-next-line {
  display: flex;
  justify-content: flex-end;
  margin-top: 38px;
}
#next-btn {
  background: linear-gradient(to right, rgba(255, 78, 255, 1), rgba(153, 179, 255, 1));
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 7px 18px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(153,179,255,0.13);
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 8px;
}
#next-btn:hover {
  background: linear-gradient(to right, rgba(223, 255, 94, 1), rgba(246, 255, 156, 1));
  color: #333;
  box-shadow: 0 4px 16px rgba(223,255,94,0.18);
}
.practice-section {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(108,99,255,0.07);
  padding: 35px 30px 60px 30px;
  min-height: 350px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}
.practice-next-line {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  position: absolute;
  bottom: 28px;
  right: 30px;
  width: calc(100% - 60px);
}
.practice-next-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  position: absolute;
  bottom: 28px;
  right: 30px;
  left: 30px;
  width: calc(100% - 60px);
}
.prev-btn-wrap {
  display: flex;
  justify-content: flex-start;
}
.next-btn-wrap {
  display: flex;
  justify-content: flex-end;
}
#prev-btn, #next-btn {
  background: linear-gradient(to right, rgba(255, 78, 255, 1), rgba(153, 179, 255, 1));
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 7px 18px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(153,179,255,0.13);
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 8px;
}
#prev-btn:hover, #next-btn:hover {
  background: linear-gradient(to right, rgba(223, 255, 94, 1), rgba(246, 255, 156, 1));
  color: #333;
  box-shadow: 0 4px 16px rgba(223,255,94,0.18);
}
.sp-header {
  background: linear-gradient(to right, rgba(255, 78, 255, 1), rgba(153, 179, 255, 1));
  color: white;
  padding: 30px 0 20px 0;
  text-align: center;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 8px 24px rgba(108,99,255,0.08);
  margin-bottom: 30px;
  position: relative;
}
.home-arrow-btn {
  position: absolute;
  left: 18px;
  top: 32px;
  background: linear-gradient(to right, rgba(255, 78, 255, 1), rgba(153, 179, 255, 1));
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(153,179,255,0.13);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  z-index: 10;
}
.home-arrow-btn:hover {
  background: linear-gradient(to right, rgba(223, 255, 94, 1), rgba(246, 255, 156, 1));
  color: #333;
  box-shadow: 0 4px 16px rgba(223,255,94,0.18);
}
.home-arrow-btn {
  position: absolute;
  left: 18px;
  top: 32px;
  background: #222;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  z-index: 10;
}
.home-arrow-btn:hover {
  background: linear-gradient(to right, rgba(223, 255, 94, 1), rgba(246, 255, 156, 1));
  color: #333;
  box-shadow: 0 4px 16px rgba(223,255,94,0.18);
}
/* 스피커 아이콘 및 iOS 터치 피드백 */
#listen-icon-btn, .speaker-icon {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.2s ease;
  opacity: 0.7;
  color: #4CAF50;
}
#listen-icon-btn:hover, .speaker-icon:hover {
  opacity: 1;
  background: rgba(76, 175, 80, 0.1);
  transform: scale(1.1);
}
#listen-icon-btn:active, .speaker-icon:active {
  transform: scale(0.95);
}
