     :root {
      --gold: #D4AF37;
      --sub-gold: #FFD700;
      --navy: #000010;
      --sub-navy: #0A0A23;
      --gray: #E0E0E0;
      --white: #FFFFFF;
      --main-color: #673AB7;
      --sub-color: #D1C4E9;   
      --text-color: #333333;
    }

    @font-face{
      font-family: "Noto Sans KR";
      src:
        /*url("/fonts/NotoSansKR-VariableFont_wght.woff2") format("woff2-variations"), */
        url("/fonts/NotoSansKR-VariableFont_wght.ttf") format("truetype");
      font-weight: 100 900;   /* 가변 범위 */
      font-style: normal;
      font-display: swap;
}

/* 사용 */
body { font-family: "Noto Sans KR", system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }


    body {
      margin: 0;
      font-family: Arial, sans-serif, 'Noto Sans KR';
      background-color: var(--navy);
      color: var(--white);
      line-height: 1.6;
    }

    #main {
      background: var(--white);  /* 콘텐츠 영역은 흰색 유지 */
    }

    .page-container {
      max-width: 1560px;
      margin: 0 auto;
      width: 100%;
      box-sizing: border-box;
    }

    header {
      background-color: var(--sub-navy);
      padding: 15px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid var(--gold);
      flex-wrap: wrap;
    }

    header h1 {
      color: var(--gold);
      font-size: 1.6rem;
      margin: 0 0 0 10px;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    nav {
      display: flex;
      flex-wrap: wrap;
      gap: 15px;
      margin-top: 10px;
    }

    nav a {
      color: var(--white);
      text-decoration: none;
      font-weight: bold;
    }

    nav a:hover {
      color: var(--sub-gold);
    }


    .hero {
      text-align: center;
      padding: 80px 20px;
      background-color: var(--navy);
    }

    .hero h2 {
      color: var(--gold);
      font-size: 2rem;
    }

    .hero p {
      font-size: 1rem;
      margin-top: 10px;
      color: var(--gray);
    }

    .btn-primary {
      background-color: var(--gold);
      color: var(--white);
      border: none;
      padding: 12px 24px;
      font-size: 1rem;
      margin-top: 20px;
      cursor: pointer;
      border-radius: 6px;
      transition: background 0.3s;
    }

    .btn-primary:hover {
      background-color: var(--sub-gold);
    }

    .plans {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 20px;
      margin: 60px 20px;
    }

    .plan {
      background-color: var(--sub-navy);
      border: 1px solid var(--gold);
      border-radius: 10px;
      padding: 20px;
      flex: 1;
      min-width: 220px;
      max-width: 300px;
      text-align: left;
    }

    .plan h3 {
      color: var(--gold);
      margin-bottom: 10px;
    }

    footer {
      background-color: var(--sub-navy);
      text-align: center;
      padding: 20px;
      color: var(--gray);
      border-top: 1px solid var(--gold);
      font-size: 0.9rem;
    }

    @media (max-width: 768px) {
      header {
        flex-direction: column;
        align-items: flex-start;
      }

      .hero h2 {
        font-size: 1.5rem;
      }

      .plans {
        flex-direction: column;
        align-items: center;
      }

      .plan {
        width: 100%;
        max-width: 90%;
      }
    }
  
  /* 메인 컨테이너 (덱+보드) */
  #main {
    flex: 1;
    display: flex;
    overflow: hidden; /* 좌우만 보이게 */
  }
  #deck-container {
    width: 280px;
    min-width: 150px;
    background: #ddd;
    display: flex;
    flex-direction: column;
    height: 100vh;
  }
  
#deck-header {
  background: var(--main-color);
  color: #fff;
  text-align: right;
  font-weight: bold;
  font-size: 14px;
  height: 60px;
  line-height: 60px;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;               /* 버튼과 텍스트 나란히 */
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

#shuffle-btn {
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: bold;
  background: var(--main-color);
  color: #fff;
  border: none;
  border-radius: 5px;      
  cursor: pointer;
  transition: all 0.2s ease;
}

#shuffle-btn:hover {
  background: var(--sub-color);
  color: var(--main-color);
}

/* 1단계: 전체 흩어짐 */
@keyframes scatterAll {
  0%   { transform: translate(0,0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) rotate(var(--rot)); opacity: 0.7; }
}


.card-back.scatter-anim {
  animation: scatterAll 0.5s ease-out forwards;
}


@keyframes gatherBackWithRotate {
  0%   { transform: translate(var(--tx), var(--ty)) rotate(var(--rot)); opacity: 0.7; }
  100% { transform: translate(0,0) rotate(90deg); opacity: 1; }
}

.card-back.gather-anim {
  animation: gatherBackWithRotate 0.8s ease-in-out forwards;
}

/* 카드 드롭 애니메이션 */
@keyframes dropCard {
  0%   { transform: translateY(-200px) scale(0.8); opacity: 0; }
  60%  { transform: translateY(20px) scale(1.05); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.card-front.drop-anim {
  animation: dropCard 0.6s ease forwards;
}


#ai-interpret-btn:disabled {
  background: #ccc;       /* 회색 배경 */
  color: #666;            /* 흐린 글씨 */
  cursor: not-allowed;    /* 금지 커서 */
  opacity: 0.7;
}

  /* 좌측 카드 덱 */
  #deck {
     width: 280px;
	   min-width: 150px;       /* 최소 너비 = 카드(120px)보다 큼 */
     background: #ddd;
     padding: 10px;
     top: 0;             /* 뷰포트 상단 기준 */
     height: 100vh;      /* 화면 높이 유지 */
     overflow-y: scroll;   /* 항상 스크롤바 표시 */
     overflow-x: visible;
     box-sizing: border-box;
     /* 파이어폭스 */
     scrollbar-width: thin;            /* 얇은 스크롤바 */
     scrollbar-color: var(--main-color) #e0f2f1; /* 막대, 배경 색상 */
   }

/* 크롬, 엣지, 사파리 */
#deck::-webkit-scrollbar {
  width: 6px;                      
}

#deck::-webkit-scrollbar-track {
  background: var(--sub-color);              /* 연민트 배경 */
  border-radius: 8px;
}

#deck::-webkit-scrollbar-thumb {
  background: var(--main-color);             /* 진민트 막대 */
  border-radius: 8px;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.3); /* 🔑 살짝 안쪽 그림자 */
}

#deck::-webkit-scrollbar-thumb:hover {
  background: #004d40;              /* hover 시 진남색 */
  box-shadow: inset 0 0 6px rgba(0,0,0,0.4); /* hover 시 그림자 조금 더 진하게 */
}


.card-back {
  width: 120px;
  height: 180px;
  margin: -170px auto 0 auto;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  cursor: grab;
  transition: transform 0.3s;
  transform: rotate(90deg);
}
  .card-back:first-child {
    margin-top: 10px;
  }
  .card-back:hover {
    /* hover 시 기존 효과 + 90도 회전 유지 */
    transform: rotate(90deg) translateY(-20px) scale(1.1) translateZ(40px);
    z-index: 100;
  }

  /* 오른쪽 배치 영역 */
  #board {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;   
    position: relative;
    padding: 0; 
  }

.layout-select {
  background: var(--main-color);   
  display: flex;
  justify-content: flex-start; 
  align-items: center;
  gap: 10px;
  height: 60px;
  flex-shrink: 0;
  position: sticky;             /* 🔑 스크롤 시에도 고정 */
  top: 0;                       /* 보드 영역 상단에 붙임 */
  z-index: 50;                  /* 카드 위에 보이도록 */
  box-shadow: 0 2px 6px rgba(0,0,0,0.2); /* 🔑 고정된 바 느낌 */
}


.left-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
  margin-right: 0;
}

/* 카드 선택 버튼 기본 */
.left-controls button {
  height: 35px;
  line-height: 35px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: bold;
  color: var(--main-color);
  background: #fff;
  border: 2px solid var(--main-color);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

/* hover, active 효과 */
.left-controls button:hover:not(:disabled) {
  background: var(--sub-color);   
  color: #fff;
}


/* 비활성화 상태 */
.left-controls button:disabled {
  background: #ccc;       /* 회색 배경 */
  border: 2px solid #aaa; /* 연한 테두리 */
  color: #666;            /* 글자색 흐리게 */
  cursor: not-allowed;    /* 클릭 불가 마우스 포인터 */
  opacity: 0.7;           /* 살짝 투명 */
}

.left-controls button:active:not(:disabled) {
  border: 2px solid var(--main-color);  
  background: #e0f2f1;
  color: var(--main-color); 
}

.center-controls {
  display: flex;
  justify-content: center;
  flex: 1;               
  gap: 10px;
}

.layout-select button {
  height: 32px;
  line-height: 32px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: bold;
  color: var(--main-color);          
  background:   #fff ;        
  border: 2px solid var(--main-color); 
  border-radius: 5px;        
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  transform-origin: center;
}

.layout-select button:hover {
  background: var(--sub-color); 
  color: #fff;
}

.carousel-track button {
  flex: 1 0 calc(100% / 7);  /* 항상 7등분 */
  margin: 0;                 /* gap 제거 */
  box-sizing: border-box;
  height: 42px;
  line-height: 42px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: bold;
  color:   #fff ;       
  background: var(--main-color);         
  border: 2px solid var(--main-color); 
  border-radius: 5px;        
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  transform-origin: center;
}

.carousel-track button.active {
  font-size: 18px;              
  background: #fff;
  color: var(--main-color); 
  border: 2px solid var(--main-color);
}

.spread-carousel {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 800px; /* 필요시 제한 */
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  flex: 1;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox 스크롤 감춤 */
  -ms-overflow-style: none; /* IE/Edge 스크롤 감춤 */
}
.carousel-track::-webkit-scrollbar {
  display: none; /* 크롬/사파리 스크롤 감춤 */
}

.carousel-track.dragging {
  cursor: grabbing;
  user-select: none;
}

/* 이전(◀) 버튼 전용 */
.nav.prev {
  background: var(--main-color);
  color: #fff;
  border: 1px solid var(--main-color);
}

/* 다음(▶) 버튼 전용 */
.nav.next {
  background: var(--main-color);
  color: #fff;
  border: 1px solid var(--main-color);
}






#question-box {
  display: flex;
  flex-direction: column;   /* 라벨은 위, textarea+버튼은 아래 */
  width: 100%;              /* 보드(dropArea) 전체 너비 */
  justify-content: center;
  max-width: none;
  margin: 10px 0 ; 
  box-sizing: border-box;

  font-family: 'Noto Sans KR', system-ui, -apple-system, 'Segoe UI', Roboto, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

#question-box label {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin: 0 0 6px 4px;      /* 라벨 아래 약간의 여백 */
}

.question-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

#question-input {
  flex: 1;                  
  min-height: 40px;
  max-height: 40px;
  padding: 8px;
  border: 2px solid var(--main-color);
  border-radius: 6px;
  background: #fff;         /* 흰색 배경 */
  color: #333;              /* 글자색 */
  resize: none;
  box-sizing: border-box;
  overflow-y: auto;          /* 글이 넘치면 스크롤 */
  margin-left: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  font-family:inherit;
}

#question-input::placeholder{
  font:inherit;
  color:#999;
}

#ai-interpret-btn {
  flex: 0 0 120px;          /* 버튼 고정 너비 */
  height: 40px;             /* textarea 높이와 동일하게 맞춤 */
  background: var(--sub-color);
  border: 1px solid var(--main-color);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  font-size: 14px;
  font-weight: bold;
  color: var(--main-color);
  cursor: pointer;
  transition: background 0.2s ease;
  margin-right: 10px;
}

#ai-interpret-btn:hover {
  background: var(--main-color);
  color: #fff;            
}

#result-box {
  margin-top: 10px;               /* 위쪽 여백 줄임 */
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--main-color);
  border-radius: 8px;
  font-size: 14px;
}
 
  /* 공통 */
  #dropArea {
    background-color: #f0f0f0;
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 30px 10px;  
    margin-top: 20px;
    margin-left: 20px;
    margin-right: 20px;
    box-sizing: border-box;      
  }
  
  

  
#dropArea.free {
  flex: 1;                     /* 부모 flex 기준으로 남은 공간 채움 */
  display: block;
  position: relative;
  margin: 20px auto;
  background-color: #f0f0f0;
  border: 2px solid #ccc;
  border-radius: 8px;
  width: 100%;                 /* 🔑 보드 폭 전체 사용 */
  max-width: 1100px;           /* 🔑 필요시 제한 (질문박스와 비슷하게) */
  height: calc(100vh - 120px);              /* 🔑 카드덱과 동일하게 세로 채움 */
  min-height: 1100px;
  overflow: hidden;
}

.drop-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 70px;
  padding: 100px;              /* 🔑 상하 패딩 줄임 */
  border: 2px solid #aaa;
  border-radius: 12px;
  background-color: #f0f0f0;
  width: fit-content;
  height: fit-content;        /* 🔑 세로도 내용물에 맞춤 */
  align-items: left;
  margin-bottom: 10px;
  margin-left:150px;
}

.drop-zone-wrapper input {
  margin: 0;                  /* 🔑 input 기본 여백 제거 */
}
  

  .drop-zone {
    border: 2px solid #aaa;
    border-radius: 10px;
    width: 120px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff; /* 흰색 */
   }

  .card-front {
    width: 120px;
    height: 180px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  }
  .drop-zone-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
	  position: relative;
    margin-bottom: 0;
    justify-content: center;
  }
  .card-label-input {
    width: 120px;             /* 카드 가로 크기와 동일 */
    margin-bottom: 5px;
    text-align: center;
    padding: 4px;
    border: 1px solid #aaa;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
  }
  
  .drop-label {
    font-size: 12px;
    color: #333;
    text-align: center;
  }




.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 24px;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: var(--main-color);
  border-radius: 50%;
  transition: 0.4s;
}

.pdf-btn {
  margin-bottom: 10px;
  padding: 6px 12px;
  border: 1px solid var(--main-color);
  background: #ffffff;
  color: var(--main-color);
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

.pdf-btn:hover {
  background: var(--sub-color); 
  color: #ffffff;
}

/* 켈틱 크로스 모드 */
  #dropArea.celtic-cross {
    display: grid;
    grid-template-columns: 100px 170px 170px 100px;
    grid-template-rows:  160px 130px 220px;
    justify-content: center;
    align-items: center;
    margin: 20px auto; 
    gap: 80px;
    width: 1000px;
    min-width: 1000px;
    max-width: 1000px;
    height: 1100px;
    min-height: 1100px;
    max-height: 1100px;
  }

#dropArea.relationship {
  display: grid;
  grid-template-columns: repeat(7, 120px);
  grid-template-rows: repeat(5, 180px);
  row-gap: 40px; 
  column-gap: 20px;
  justify-content: center;
  align-items: start;
  margin: 0 auto 40px auto; 
  width: fit-content;
  height: 1150px;
}


#dropArea.relationship .drop-zone {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 120px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 라벨 항상 표시 */
#dropArea.relationship .label {
  font-size: 12px;
  margin-top: 4px;
  text-align: center;
  pointer-events: none;
}

#dropArea.relationship .drop-label {
  font-size: 12px;
  color: #333;
  text-align: center;
  margin-bottom: 6px; /* 카드 위쪽 간격 */
}

.deck-select {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;                /* 버튼과 텍스트 간격 */
  margin: 10px 0;
  margin-left: 25px;
}

.deck-select button {
  background: var(--main-color);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: background 0.2s;
}

.deck-select button:hover {
  background: var(--sub-color);
}

#deck-label {
  font-size: 16px;
  font-weight: bold;
  color: var(--sub-gold);
  min-width: 80px;          /* 텍스트 길이가 바뀌어도 일정 폭 유지 */
  text-align: center;
  display: inline-block;
}

.navbar {
  display: flex;
  gap: 20px;
  background: #333;
  padding: 10px;
}

.navbar a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%; /* 메뉴 바로 아래 */
  left: 0;
  background-color: #444;
  min-width: 120px;
  border-radius: 4px;
  z-index: 1000;
}

.dropdown-content a {
  display: block;
  padding: 8px 12px;
  color: white;
}

.dropdown-content a:hover {
  background-color: #555;
}

.dropdown:hover .dropdown-content {
  display: block; /* hover 시 보이도록 */
}


.ai-result { margin-top:15px; padding:15px; background:#fdfdfd; border:1px solid #ddd; border-radius:8px; }
.ai-result h3 { margin:0 0 10px; font-size:16px; color:var(--main-color); border-bottom:1px solid #eee; padding-bottom:5px; }
.ai-text { white-space: pre-line; } 

.modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.45);z-index:9999;color:#000; }
.modal.show{display:flex}
.modal-content{background:#fff;padding:16px 20px;border-radius:8px;min-width:260px;max-width:90vw;box-shadow:0 10px 30px rgba(0,0,0,.2); text-align:center;}
.modal-actions{text-align:center;margin-top:12px}
.modal-actions button{padding:6px 12px;border:1px solid var(--main-color);background:var(--main-color);color:#fff;border-radius:6px;cursor:pointer;font-weight: bold;}

.loading-overlay{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.45);z-index:10000}
.loading-overlay.show{display:flex}
.loading-box{display:flex;align-items:center;gap:10px;background:#fff;color:#000;padding:14px 16px;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.2)}
.loading-spinner{width:20px;height:20px;border:3px solid #ddd;border-top-color:var(--main-color);border-radius:50%;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

.pdf-big { font-size:20px !important; }
.pdf-big .ai-result { font-size:20px !important; }
.pdf-big .ai-result h3 { font-size:18px !important; }
.pdf-big li, .pdf-big p { font-size:20px !important; line-height:1.7; }

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px; /* 아이콘과 텍스트 간격 */
}

.user-profile .avatar {
  width: 32px;   /* 원하는 크기 */
  height: 32px;  /* 정사각형 */
  border-radius: 50%; /* 동그란 아바타 */
  object-fit: cover;  /* 비율 유지하면서 잘라냄 */
  cursor: pointer; 
}

.user-profile .avatar:hover {
  transform: scale(1.1);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;   /* 원형 */
  object-fit: cover;    /* 비율 유지하면서 꽉 채움 */
  border: none;
  cursor: pointer;
}

/* user.html에서 선택용 아바타 썸네일 */
.avatar-choice {
  width: 60px;          /* 프로필보다는 조금 크게 보여줌 */
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  margin: 5px;
  transition: border 0.2s;
}

.avatar-choice:hover {
  border: 2px solid var(--main-color); /* 호버 시 강조 */
  transform: scale(1.05);
}

.avatar-choice.selected {
  border: 3px solid var(--main-color); /* ✅ 선택 표시 */
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--main-color, #444);
  color: white;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

/* ===== 모바일 waite 플로우 ===== */
#mobile-waite-flow {
  display: none;            /* 기본은 숨김 → JS에서 모바일이면 보여줌 */
  padding: 16px;
  background: var(--white);
  color: var(--text-color);
}

.mw-step-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.mw-step-badge {
  background: var(--main-color);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
}

.mw-step-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--main-color);
}

.mw-section {
  margin-bottom: 16px;
}

.mw-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

#mw-question {
  width: 100%;
  min-height: 80px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
}

#mw-spread {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: inherit;
  box-sizing: border-box;
}

.mw-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mw-radio {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #ccc;
  background: #fafafa;
  font-size: 13px;
}

.mw-radio input {
  margin: 0;
}

.mw-footer {
  margin-top: 12px;
  text-align: right;
}

#mw-next-btn {
  background: var(--main-color);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

#mw-next-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mw-hint {
  margin-top: 12px;
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

/* 좁은 화면에서만 여백 조정 */
@media (max-width: 768px) {
  .page-container {
    max-width: 100%;
  }
}

/* ===== 모바일 waite 플로우 ===== */
#mobile-waite-flow {
  display: none;            /* 기본은 숨김 → JS에서 모바일이면 보여줌 */
  padding: 16px;
  background: var(--white);
  color: #222222;
}

.mw-step-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.mw-step-badge {
  background: var(--main-color);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
}

.mw-step-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--main-color);
}

.mw-section {
  margin-bottom: 16px;
}

.mw-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333333;
}

#mw-question {
  width: 100%;
  min-height: 80px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
}

#mw-spread {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: inherit;
  box-sizing: border-box;
}

.mw-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mw-radio {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #ccc;
  background: #fafafa;
  font-size: 13px;
}

.mw-radio input {
  margin: 0;
}

.mw-footer {
  margin-top: 12px;
  text-align: right;
}

#mw-next-btn {
  background: var(--main-color);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

#mw-next-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mw-hint {
  margin-top: 12px;
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

/* 좁은 화면에서만 여백 조정 */
@media (max-width: 768px) {
  .page-container {
    max-width: 100%;
  }
}

