* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Jua', 'Gamja Flower', sans-serif;
}

body {
  background-color: #ffef00;
  background-image: 
    radial-gradient(#ff3366 15%, transparent 16%),
    radial-gradient(#00d2ff 15%, transparent 16%);
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

/* 배경 스티커 장식 */
.bg-shape {
  position: absolute;
  font-size: 45px;
  user-select: none;
  animation: float 3s ease-in-out infinite alternate;
  z-index: 0;
}
.shape-flower1 { top: 5%; left: 8%; transform: rotate(-15deg); }
.shape-flower2 { bottom: 8%; right: 8%; transform: rotate(20deg); animation-delay: 1s; }
.shape-smile { top: 12%; right: 12%; transform: rotate(10deg); animation-delay: 0.5s; }
.shape-star1 { bottom: 15%; left: 6%; transform: rotate(-25deg); animation-delay: 1.5s; }
.shape-star2 { top: 40%; left: 3%; animation-delay: 0.8s; }
.shape-heart { top: 35%; right: 4%; animation-delay: 1.2s; }

@keyframes float {
  0% { transform: translateY(0px) rotate(-10deg); }
  100% { transform: translateY(-15deg) rotate(10deg); }
}

.container {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 10;
}

/* 키치 카드 스타일 */
.card {
  background: #ffffff;
  border: 4px solid #000000;
  border-radius: 32px;
  padding: 36px 24px;
  box-shadow: 10px 10px 0px #000000;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hidden {
  display: none !important;
}

.active {
  display: block;
}

/* 뱃지 및 제목 */
.badge {
  display: inline-block;
  background: #ff3366;
  color: #ffffff;
  font-size: 16px;
  padding: 8px 20px;
  border-radius: 30px;
  border: 3px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.title {
  font-size: 30px;
  color: #000000;
  line-height: 1.3;
  margin-bottom: 16px;
  text-shadow: 2px 2px 0px #ff007f;
}

.subtitle {
  font-size: 17px;
  color: #333333;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* ==========================================
   MBTI 전용 스타일 (MBTI.html 호환)
   ========================================== */
.progress-container {
  margin-bottom: 20px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  color: #000000;
  margin-bottom: 8px;
}

.progress-bar-bg {
  width: 100%;
  height: 16px;
  background-color: #f0f0f0;
  border: 3px solid #000000;
  border-radius: 20px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: #ff3366;
  border-radius: 10px;
  transition: width 0.3s ease;
}

.question-text {
  font-size: 20px;
  color: #000000;
  line-height: 1.4;
  margin-bottom: 24px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: keep-all;
}

/* 5단계 보기 스타일 */
.likert-scale {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scale-btn {
  width: 100%;
  padding: 12px 16px;
  border: 3px solid #000000;
  border-radius: 16px;
  font-size: 17px;
  color: #000000;
  cursor: pointer;
  text-align: center;
  box-shadow: 3px 3px 0px #000000;
  transition: all 0.15s ease;
}

.scale-btn:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0px #000000;
}

.scale-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #000000;
}

.scale-1 { background: #ff3366; color: #fff; }
.scale-2 { background: #ff99bb; }
.scale-3 { background: #ffffff; }
.scale-4 { background: #99e6ff; }
.scale-5 { background: #00d2ff; }

.result-mbti {
  font-size: 52px;
  color: #ff3366;
  margin: 4px 0;
  text-shadow: 3px 3px 0px #000000;
  -webkit-text-stroke: 1px #000;
}

.pros-cons-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.section-box {
  border: 3px solid #000;
  border-radius: 20px;
  padding: 16px;
  text-align: left;
  box-shadow: 4px 4px 0px #000;
}

.section-box h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #000;
}

.section-box ul {
  list-style: none;
  padding-left: 0;
}

.section-box li {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 6px;
  position: relative;
  padding-left: 18px;
  color: #222;
}

.section-box li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #000;
  font-weight: bold;
}

.pros-box {
  background: #d4edda;
}

.cons-box {
  background: #f8d7da;
}

.mbti-traits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  background: #fff;
  border: 3px solid #000;
  border-radius: 20px;
  padding: 14px;
  box-shadow: 4px 4px 0px #000;
}

.trait-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #000;
}

.trait-bar-bg {
  flex-grow: 1;
  height: 12px;
  background: #eee;
  border: 2px solid #000;
  border-radius: 10px;
  margin: 0 10px;
  overflow: hidden;
}

.trait-bar-fill {
  height: 100%;
  background: #00d2ff;
  border-radius: 5px;
}

/* 탭 컨트롤 버튼 */
.tab-group {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.tab-btn {
  flex: 1;
  padding: 12px 14px;
  border: 3px solid #000000;
  border-radius: 16px;
  background: #ffffff;
  font-size: 17px;
  color: #000000;
  cursor: pointer;
  box-shadow: 3px 3px 0px #000000;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0px #000000;
}

.tab-btn.active {
  background: #ff3366;
  color: #ffffff;
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #000000;
}

/* 파일 업로드 존 */
.upload-zone {
  border: 3px dashed #000000;
  background: #fdfae7;
  border-radius: 24px;
  padding: 36px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 4px 4px 0px #000000;
}

.upload-zone:hover,
.upload-zone.dragover {
  background: #fff5b8;
  border-color: #ff3366;
  transform: translateY(-2px);
}

.file-input {
  display: none;
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.upload-text {
  font-size: 18px;
  font-weight: bold;
  color: #000000;
  margin-bottom: 6px;
}

.upload-subtext {
  font-size: 14px;
  color: #666666;
}

/* 이미지 미리보기 */
.preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.preview-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 24px;
  border: 4px solid #000000;
  box-shadow: 6px 6px 0px #000000;
  object-fit: cover;
}

/* 웹캠 영역 */
.webcam-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.webcam-container canvas {
  border: 4px solid #000000;
  border-radius: 24px;
  box-shadow: 6px 6px 0px #000000;
  max-width: 100%;
  height: auto;
}

.webcam-actions {
  margin-top: 10px;
}

/* 로딩 인디케이터 */
.loading-box {
  padding: 24px;
  text-align: center;
}

.spinner {
  font-size: 45px;
  display: inline-block;
  animation: spin 1.2s infinite linear;
  margin-bottom: 12px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 18px;
  font-weight: bold;
  color: #000000;
}

/* 결과 상자 */
.result-box {
  margin-top: 24px;
  border-top: 3px dashed #000000;
  padding-top: 24px;
  text-align: center;
}

.result-header {
  margin-bottom: 16px;
}

.result-badge {
  display: inline-block;
  background: #00d2ff;
  color: #000000;
  font-size: 18px;
  padding: 6px 18px;
  border-radius: 20px;
  border: 3px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  margin-bottom: 10px;
}

.result-animal-title {
  font-size: 26px;
  color: #ff3366;
  text-shadow: 2px 2px 0px #000000;
  margin-bottom: 12px;
}

.hashtags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}

.hashtag {
  background: #ffeb3b;
  color: #000;
  border: 2px solid #000;
  border-radius: 15px;
  padding: 4px 12px;
  font-size: 15px;
  box-shadow: 2px 2px 0px #000;
}

.result-desc {
  font-size: 17px;
  color: #000;
  line-height: 1.6;
  background: #eef2ff;
  border: 3px solid #000;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: 4px 4px 0px #000;
  word-break: keep-all;
}

/* 매력 포인트 서술 박스 */
.animal-feature-box {
  border: 3px solid #000;
  border-radius: 20px;
  padding: 16px;
  text-align: left;
  background: #d4edda;
  box-shadow: 4px 4px 0px #000;
  margin-bottom: 24px;
}

.animal-feature-box h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #000;
}

.animal-feature-box ul {
  list-style: none;
  padding-left: 0;
}

.animal-feature-box li {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 6px;
  position: relative;
  padding-left: 18px;
  color: #222;
}

.animal-feature-box li::before {
  content: "🐾";
  position: absolute;
  left: 0;
  font-size: 12px;
}

/* 확률 지표 그래프 */
.probability-section {
  background: #ffffff;
  border: 3px solid #000;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 4px 4px 0px #000;
  margin-bottom: 24px;
}

.prob-title {
  font-size: 17px;
  color: #000;
  margin-bottom: 14px;
  text-align: left;
}

.prob-item {
  margin-bottom: 12px;
}

.prob-item:last-child {
  margin-bottom: 0;
}

.prob-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: bold;
  color: #000;
  margin-bottom: 4px;
}

.prob-bar-bg {
  width: 100%;
  height: 16px;
  background: #f0f0f0;
  border: 2px solid #000000;
  border-radius: 10px;
  overflow: hidden;
}

.prob-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.4s ease-out;
}

.fill-dog {
  background: #ff3366;
}

.fill-cat {
  background: #00d2ff;
}

/* 버튼 디자인 */
.btn {
  width: 100%;
  padding: 16px;
  border: 3px solid #000000;
  border-radius: 20px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 5px 5px 0px #000000;
  transition: all 0.15s ease;
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0px #000000;
}

.btn-primary {
  background: #00d2ff;
  color: #000000;
}

.btn-primary:hover {
  background: #00b8e6;
}

.btn-secondary {
  background: #ff9900;
  color: #000000;
  margin-top: 10px;
}

.btn-secondary:hover {
  background: #e68a00;
}

.small-btn {
  font-size: 16px;
  padding: 10px 16px;
  width: auto;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 푸터 및 모달 */
.footer {
  text-align: center;
  margin-top: 24px;
  position: relative;
  z-index: 10;
}

.footer-btn {
  background: #ffffff;
  border: 3px solid #000000;
  border-radius: 20px;
  color: #000000;
  padding: 10px 24px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 4px 4px 0px #000000;
  transition: all 0.15s ease;
}

.footer-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 6px 6px 0px #000000;
}

.footer-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000000;
}

/* 모달 컨테이너 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  background: #ffffff;
  border: 4px solid #000000;
  border-radius: 32px;
  width: 90%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 24px;
  box-shadow: 10px 10px 0px #000000;
  z-index: 1010;
  text-align: center;
  animation: modalScaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalScaleUp {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ff3366;
  color: #ffffff;
  border: 3px solid #000000;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0px #000000;
  transition: all 0.1s ease;
  z-index: 1020;
}

.modal-close-btn:hover {
  background: #e62e5c;
  transform: translateY(-1px);
  box-shadow: 3px 3px 0px #000000;
}

.modal-close-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #000000;
}

.modal-title {
  font-size: 26px;
  color: #000000;
  line-height: 1.3;
  margin-bottom: 10px;
  text-shadow: 2px 2px 0px #ff007f;
}

.modal-subtitle {
  font-size: 14px;
  color: #555555;
  line-height: 1.5;
  margin-bottom: 24px;
}

.form-group {
  text-align: left;
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 15px;
  color: #000000;
  margin-bottom: 8px;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 3px solid #000000;
  border-radius: 16px;
  font-size: 15px;
  background-color: #fcfcfc;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  background-color: #ffffff;
  border-color: #00d2ff;
  box-shadow: 4px 4px 0px #000000;
  transform: translate(-2px, -2px);
}

.form-group textarea {
  resize: none;
}

.form-submit-btn {
  margin-top: 10px;
  width: 100%;
}

.inquiry-status {
  margin-top: 14px;
  font-size: 16px;
  font-weight: bold;
  min-height: 24px;
}

/* Disqus 댓글 카드 스타일 */
.comments-card {
  margin-top: 24px;
  text-align: left;
}

.comments-title {
  font-size: 22px;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
}