/* JOB QUEST 허브 — cute 월드 선택 (PHASE 14.1 폴리시)
   Toolturi 공통 헤더/푸터·SEO 본문은 유지. 이 섹션만 cute 세계관. */

.jq-hub-cute{
  --jq-hub-ink:#4f3f38;
  --jq-hub-muted:#8d7368;
  --jq-hub-line:#efd0c6;
  --jq-hub-star:#e08a3a;
  --jq-hub-star-soft:#fff1dc;
  --jq-hub-econ:#3a9e94;
  --jq-hub-econ-soft:#dff7f3;
  --jq-hub-career:#4fad55;
  --jq-hub-career-soft:#e7f8df;
  --jq-hub-issue:#b85a72;
  --jq-hub-issue-soft:#ffe8ef;
  --jq-hub-max:720px;
  color:var(--jq-hub-ink);
  margin:0 auto 2.5rem;
  width:100%;
  max-width:var(--jq-hub-max);
}

.jq-hub-cute *{ box-sizing:border-box; }

.jq-hub-hero{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:10px;
  width:100%;
  padding:14px 14px 16px;
  margin:0 0 16px;
  border-radius:28px;
  border:2.5px solid var(--jq-hub-line);
  background:linear-gradient(180deg, #fffdfb 0%, #fff7f2 55%, #ffe8f0 100%);
  box-shadow:0 8px 0 rgba(79,55,45,.05);
  overflow:hidden;
}

.jq-hub-hero::before{
  content:"";
  position:absolute;
  left:14px; right:14px; top:10px;
  height:7px;
  border-radius:999px;
  background:linear-gradient(90deg, transparent, #f5d19a 20%, #78c86a 50%, #f0b8c6 80%, transparent);
  opacity:.55;
  pointer-events:none;
}

.jq-hub-meadow{
  position:relative;
  width:100%;
  height:128px;
  margin:4px 0 2px;
  border-radius:20px;
  overflow:hidden;
  border:2.5px solid #f3c5d0;
  background:#dff3c8;
  box-shadow:0 3px 0 rgba(243,197,208,.28);
}

.jq-hub-meadow-art{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 58%;
  pointer-events:none;
}

.jq-hub-flower{
  position:absolute;
  z-index:2;
  width:30px;
  height:auto;
  pointer-events:none;
  image-rendering:pixelated;
  image-rendering:crisp-edges;
  filter:drop-shadow(0 1px 0 rgba(60,40,20,.1));
}
.jq-hub-flower.f1{ left:6%; bottom:10%; animation:jqHubSway 2.8s ease-in-out infinite; }
.jq-hub-flower.f2{ left:38%; bottom:7%; width:26px; animation:jqHubSway 3.1s ease-in-out infinite .3s; }
.jq-hub-flower.f3{ left:78%; bottom:12%; width:28px; animation:jqHubSway 2.5s ease-in-out infinite .6s; }

.jq-hub-qubby{
  position:absolute;
  left:12%;
  bottom:4%;
  width:68px;
  height:68px;
  object-fit:contain;
  object-position:bottom center;
  image-rendering:pixelated;
  image-rendering:crisp-edges;
  z-index:4;
  filter:drop-shadow(0 2px 2px rgba(60,40,20,.14));
  animation:jqHubBob 2.4s ease-in-out infinite;
}
.jq-hub-turtle{
  position:absolute;
  right:9%;
  bottom:6%;
  width:46px;
  height:auto;
  object-fit:contain;
  object-position:bottom center;
  image-rendering:pixelated;
  image-rendering:crisp-edges;
  z-index:3;
}
.jq-hub-butterfly{
  position:absolute;
  left:54%;
  top:12%;
  width:18px;
  height:auto;
  object-fit:contain;
  image-rendering:pixelated;
  image-rendering:crisp-edges;
  z-index:5;
  animation:jqHubFly 5.2s ease-in-out infinite;
}

@keyframes jqHubBob{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-4px); }
}
@keyframes jqHubFly{
  0%,100%{ transform:translate(0,0); }
  40%{ transform:translate(7px,-5px); }
  70%{ transform:translate(-5px,-2px); }
}
@keyframes jqHubSway{
  0%,100%{ transform:rotate(-3deg); }
  50%{ transform:rotate(4deg) translateY(-1px); }
}

.jq-hub-title{
  margin:2px 0 0;
  font-size:clamp(1.6rem, 5.5vw, 2.05rem);
  font-weight:800;
  letter-spacing:.02em;
  line-height:1.15;
  color:var(--jq-hub-ink);
}
.jq-hub-title span{ color:var(--jq-hub-career); }
.jq-hub-sub{
  margin:0;
  max-width:22em;
  font-size:1rem;
  line-height:1.5;
  color:var(--jq-hub-muted);
  text-wrap:pretty;
}

.jq-hub-pick-label{
  margin:0 0 12px;
  font-size:.84rem;
  font-weight:800;
  letter-spacing:.06em;
  color:var(--jq-hub-muted);
  text-transform:uppercase;
}

.jq-hub-grid{
  display:grid;
  gap:12px;
  grid-template-columns:1fr;
  width:100%;
}

.jq-hub-card{
  --card-accent:var(--jq-hub-career);
  --card-soft:var(--jq-hub-career-soft);
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  min-height:150px;
  padding:16px 16px 14px;
  border-radius:22px;
  border:2.5px solid color-mix(in srgb, var(--card-accent) 40%, #f0e4dc);
  background:linear-gradient(165deg, #fffefb 0%, var(--card-soft) 120%);
  box-shadow:0 3px 0 color-mix(in srgb, var(--card-accent) 26%, transparent);
  text-decoration:none !important;
  color:inherit;
  transition:transform .14s ease, box-shadow .14s ease, filter .14s ease;
  overflow:hidden;
  -webkit-tap-highlight-color:transparent;
}
.jq-hub-card:hover,
.jq-hub-card:focus-visible{
  transform:translateY(-2px);
  filter:brightness(1.02);
  outline:none;
  box-shadow:0 5px 0 color-mix(in srgb, var(--card-accent) 30%, transparent);
}
.jq-hub-card:active{
  transform:translateY(1px);
  box-shadow:0 2px 0 color-mix(in srgb, var(--card-accent) 26%, transparent);
}

.jq-hub-card--star{ --card-accent:var(--jq-hub-star); --card-soft:var(--jq-hub-star-soft); }
.jq-hub-card--econ{ --card-accent:var(--jq-hub-econ); --card-soft:var(--jq-hub-econ-soft); }
.jq-hub-card--career{ --card-accent:var(--jq-hub-career); --card-soft:var(--jq-hub-career-soft); }
.jq-hub-card--issue{ --card-accent:var(--jq-hub-issue); --card-soft:var(--jq-hub-issue-soft); }

/* 카드별 작은 픽셀 모티프 (CSS only) */
.jq-hub-motif{
  position:absolute;
  right:12px;
  top:12px;
  width:36px;
  height:36px;
  pointer-events:none;
  opacity:.92;
}
.jq-hub-motif::before,
.jq-hub-motif::after{
  content:"";
  position:absolute;
  image-rendering:pixelated;
}

/* STAR — 성장 별 */
.jq-hub-card--star .jq-hub-motif::before{
  inset:4px;
  background:
    linear-gradient(var(--jq-hub-star), var(--jq-hub-star)) center 2px / 6px 6px no-repeat,
    linear-gradient(var(--jq-hub-star), var(--jq-hub-star)) 6px 10px / 6px 6px no-repeat,
    linear-gradient(var(--jq-hub-star), var(--jq-hub-star)) 18px 10px / 6px 6px no-repeat,
    linear-gradient(var(--jq-hub-star), var(--jq-hub-star)) 12px 18px / 6px 6px no-repeat,
    linear-gradient(#f5d19a, #f5d19a) 12px 10px / 6px 6px no-repeat;
}
.jq-hub-card--star .jq-hub-motif::after{
  right:0; bottom:0; width:10px; height:10px;
  background:linear-gradient(#ffd76a,#ffd76a);
  box-shadow: -14px -2px 0 #ffd76a;
  opacity:.7;
}

/* ECON — 동전 */
.jq-hub-card--econ .jq-hub-motif::before{
  left:4px; top:4px;
  width:28px; height:28px;
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%, #ffe9a8 0 35%, #e0b84a 36% 100%);
  box-shadow: inset 0 0 0 3px #c9972e;
}
.jq-hub-card--econ .jq-hub-motif::after{
  left:14px; top:11px;
  width:8px; height:14px;
  border:2px solid #8a6a1e;
  border-radius:2px;
  box-sizing:border-box;
}

/* CAREER — 깃발·길 */
.jq-hub-card--career .jq-hub-motif::before{
  left:16px; top:4px;
  width:3px; height:26px;
  background:#6a4e38;
  box-shadow: 3px 2px 0 0 #78c86a, 9px 2px 0 0 #78c86a, 3px 8px 0 0 #4fad55, 9px 8px 0 0 #4fad55;
}
.jq-hub-card--career .jq-hub-motif::after{
  left:4px; bottom:4px;
  width:28px; height:6px;
  border-radius:3px;
  background:#c4a574;
}

/* ISSUE — 뉴스/말풍선 */
.jq-hub-card--issue .jq-hub-motif::before{
  left:4px; top:6px;
  width:28px; height:20px;
  border-radius:6px;
  background:#fff;
  border:2px solid var(--jq-hub-issue);
  box-shadow: inset 4px 5px 0 #f0b8c6, inset 4px 10px 0 #f0b8c6;
}
.jq-hub-card--issue .jq-hub-motif::after{
  left:10px; bottom:4px;
  width:0; height:0;
  border:6px solid transparent;
  border-top-color:var(--jq-hub-issue);
  border-bottom:0;
}

.jq-hub-card-name{
  margin:0;
  padding-right:44px;
  font-size:1.14rem;
  font-weight:800;
  letter-spacing:.01em;
  line-height:1.2;
  color:var(--jq-hub-ink);
}
.jq-hub-card-name em{
  font-style:normal;
  color:var(--card-accent);
}

.jq-hub-card-desc{
  margin:0;
  flex:1;
  font-size:.92rem;
  line-height:1.45;
  color:var(--jq-hub-muted);
  max-width:28em;
  text-wrap:pretty;
}

.jq-hub-card-go{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  margin-top:4px;
  padding:8px 18px;
  border-radius:999px;
  background:linear-gradient(180deg, color-mix(in srgb, var(--card-accent) 88%, #fff) 0%, var(--card-accent) 100%);
  color:#fff;
  font-size:.95rem;
  font-weight:800;
  box-shadow:0 3px 0 color-mix(in srgb, var(--card-accent) 70%, #333);
  pointer-events:none;
}

/* 한국어 허브에서는 EN 시범 링크 숨김 (직접 URL·파일은 유지) */
.jq-hub-en-note{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

@media (min-width:768px){
  .jq-hub-cute{ --jq-hub-max:760px; }
  .jq-hub-meadow{ height:148px; }
  .jq-hub-qubby{ width:76px; height:76px; left:13%; }
  .jq-hub-turtle{ width:50px; right:10%; }
  .jq-hub-grid{
    grid-template-columns:1fr 1fr;
    gap:14px;
  }
  .jq-hub-card{ min-height:158px; padding:18px; }
}

@media (min-width:1024px){
  .jq-hub-cute{ --jq-hub-max:820px; }
  .jq-hub-hero{ padding:16px 18px 18px; }
  .jq-hub-meadow{ height:156px; }
  .jq-hub-qubby{ width:82px; height:82px; }
  .jq-hub-turtle{ width:54px; }
  .jq-hub-grid{ gap:16px; }
}

@media (min-width:1280px){
  .jq-hub-cute{ --jq-hub-max:880px; }
}

@media (max-width:360px){
  .jq-hub-meadow{ height:116px; }
  .jq-hub-qubby{ width:58px; height:58px; }
  .jq-hub-turtle{ width:38px; }
  .jq-hub-flower.f2{ display:none; }
  .jq-hub-card{ min-height:140px; padding:14px; }
  .jq-hub-card-desc{ font-size:.88rem; }
}

@media (prefers-reduced-motion:reduce){
  .jq-hub-qubby,
  .jq-hub-butterfly,
  .jq-hub-flower{ animation:none !important; }
  .jq-hub-card{ transition:none; }
  .jq-hub-card:hover,
  .jq-hub-card:focus-visible,
  .jq-hub-card:active{ transform:none; }
}
