
/* CAROMY HOME - REFERENCE IMAGE FINAL */
/* 첫 화면에만 적용 */
@media (max-width:820px) and (orientation:portrait) {

  /* 상단 문구 */
  #view-input h1,
  .input-view h1,
  .capture-intro h1 {
    color:#182723 !important;
    letter-spacing:-.045em !important;
  }

  .single-line-help {
    white-space:normal !important;
    word-break:keep-all !important;
    overflow-wrap:break-word !important;
    color:#7e8987 !important;
    line-height:1.5 !important;
  }

  /* 기존 큰 흰색 바깥 박스 제거 */
  .capture-panel {
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    padding:0 !important;
    border-radius:0 !important;
  }

  /* 카드 3개 */
  .capture-actions-three {
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:8px !important;
    width:100% !important;
    padding:0 !important;
    margin:0 0 18px !important;
    align-items:stretch !important;
  }

  .capture-actions-three #cameraBtn,
  .capture-actions-three #galleryBtn,
  .capture-actions-three #manualLayoutBtn {
    box-sizing:border-box !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:11px !important;

    width:100% !important;
    min-width:0 !important;
    height:118px !important;
    min-height:118px !important;
    max-height:118px !important;
    padding:12px 4px !important;
    margin:0 !important;

    border:0 !important;
    outline-offset:3px !important;
    border-radius:22px !important;
    background:#ffffff !important;
    background-image:none !important;
    color:#171b1a !important;

    box-shadow:0 7px 22px rgba(24,53,44,.055) !important;
    overflow:hidden !important;
    cursor:pointer !important;
    text-align:center !important;
    transform:none !important;
  }

  /* 기존 추가 아이콘 pseudo-element 무효화 */
  .capture-actions-three #cameraBtn::before,
  .capture-actions-three #galleryBtn::before,
  .capture-actions-three #manualLayoutBtn::before,
  .capture-actions-three #cameraBtn::after,
  .capture-actions-three #galleryBtn::after,
  .capture-actions-three #manualLayoutBtn::after {
    content:none !important;
    display:none !important;
  }

  /* 새 아이콘 */
  .capture-actions-three .caromy-reference-icon {
    display:block !important;
    flex:0 0 58px !important;
    width:58px !important;
    height:58px !important;
    min-height:58px !important;
    margin:0 !important;
    padding:0 !important;
    line-height:1 !important;
  }

  .capture-actions-three .caromy-reference-icon svg {
    display:block !important;
    width:100% !important;
    height:100% !important;
  }

  /* 검은색, 가벼운 글씨 */
  .capture-actions-three #cameraBtn > strong,
  .capture-actions-three #galleryBtn > strong,
  .capture-actions-three #manualLayoutBtn > strong {
    display:block !important;
    font-family:"CAROMY Gmarket Sans Medium",sans-serif !important;
    font-size:16px !important;
    font-weight:700 !important;
    line-height:1.3 !important;
    letter-spacing:-.025em !important;
    color:#171b1a !important;
    white-space:nowrap !important;
    word-break:keep-all !important;
    margin:0 !important;
    padding:0 !important;
    width:auto !important;
    height:auto !important;
    min-height:0 !important;
    flex:0 0 auto !important;
    transform:none !important;
  }

  .capture-actions-three #cameraBtn > small,
  .capture-actions-three #galleryBtn > small,
  .capture-actions-three #manualLayoutBtn > small {
    display:none !important;
  }

  /* 남은 기존 아이콘/라벨은 비표시 */
  .capture-actions-three .caromy-capture-svg,
  .capture-actions-three .caromy-home-card-icon,
  .capture-actions-three .caromy-home-card-label,
  .capture-actions-three .caromy-home-action-icon,
  .capture-actions-three .caromy-home-action-label {
    display:none !important;
  }

  .capture-actions-three .capture-btn:active {
    background:#f7faf9 !important;
    transform:scale(.98) !important;
  }

  @media(max-width:360px) {
    .capture-actions-three {gap:6px !important;}
    .capture-actions-three .capture-btn {
      height:110px !important;
      min-height:110px !important;
      max-height:110px !important;
    }
  }
}


/* Gmarket Sans Medium: 첫 화면 3개 버튼 전용 */
@font-face {
  font-family: "CAROMY Gmarket Sans Medium";
  src: url("/static/assets/GmarketSansTTFMedium.ttf?v=20261023180913") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

/* CAROMY HOME SPACING FIX V02 START */
@media (max-width:820px) and (orientation:portrait) {

  /* 제목 및 안내문이 들어 있는 상단 영역 */
  .single-line-help {
    margin-bottom:0!important;
    padding-bottom:0!important;
  }

  /* 안내문 바로 다음 입력 패널 */
  .capture-panel {
    margin-top:0!important;
    padding-top:0!important;
  }

  /* 카드 3개 위쪽 간격 */
  .capture-panel .capture-actions-three {
    margin-top:0!important;
    padding-top:0!important;
    row-gap:8px!important;
  }

  /* 상단 영역과 패널을 벌리는 기본 간격 제거 */
  .capture-panel:first-of-type {
    margin-block-start:0!important;
  }
}
/* CAROMY HOME SPACING FIX V02 END */


/* CAROMY INTRO COMPACT START */
@media(max-width:820px) and (orientation:portrait) {

  /* 안내문 줄바꿈 및 기본 여백 제거 */
  p.single-line-help {
    margin-top:4px !important;
    margin-bottom:0 !important;
    padding:0 !important;
    line-height:1.3 !important;
    font-size:clamp(11px, 3.2vw, 14px) !important;
    white-space:nowrap !important;
    word-break:keep-all !important;
    letter-spacing:-.04em !important;
  }

  /* 제목 아래 여백도 최소화 */
  .capture-panel {
    margin-top:0 !important;
  }
}
/* CAROMY INTRO COMPACT END */


/* CAROMY INTRO FINAL TEXT START */
@media (max-width:820px) and (orientation:portrait) {
  p.single-line-help {
    font-size:16px!important;
    font-weight:400!important;
    line-height:1.5!important;
    color:#7e8987!important;
    white-space:normal!important;
    word-break:keep-all!important;
    margin-top:6px!important;
    margin-bottom:0!important;
  }
}
/* CAROMY INTRO FINAL TEXT END */


/* CAROMY CURRENT LAYOUT GUIDE COLOR START */
@media (max-width:820px) and (orientation:portrait) {
  /* 현재 배치 아래의 보조 안내문 */
  .layout-help,
  .layout-guide,
  .board-help,
  .board-guide {
    color:#5A6360 !important;
  }
}
/* CAROMY CURRENT LAYOUT GUIDE COLOR END */


/* CAROMY EDIT HINT COLOR FIX */
@media (max-width:820px) and (orientation:portrait) {
  #layoutWorkbench #editHint.coach-message {
    color: #5A6360 !important;
    opacity: 1 !important;
  }
}


/* CAROMY FINAL TEXT TUNE START */

/* 현재 배치 안내문 */
#layoutWorkbench #editHint.coach-message {
  color:#343C39!important;
  -webkit-text-fill-color:#343C39!important;
  opacity:1!important;
}

/* AI 공략 찾기 버튼: 화살표 없이 작은 글씨 */
#recommendBtn,
#recommendSearchBtn,
#findStrategyBtn {
  font-size:clamp(14px, 3.8vw, 20px)!important;
  letter-spacing:-.03em!important;
}

/* CAROMY FINAL TEXT TUNE END */
