/* 허브 전용 — 그림 카드를 골라 들어가는 테스트 가게
   Layout: 밝은 회색 바닥 위 흰 카드 격자(폰 2열, 넓은 화면 3열). 카드 위쪽은 테스트마다 다른 옅은 색 그림 칸,
   오른쪽 아래 검은 재생 버튼으로 "골라서 시작"하는 느낌. 강조색은 하트 핑크 하나만 */
:root {
  color-scheme: light;
  --bg: #F3F4F6;        /* 바닥 */
  --surface: #FFFFFF;   /* 카드 */
  --text: #15171C;      /* 글자·재생 버튼 */
  --muted: #6A6F7A;     /* 보조 글자 */
  --line: #E3E5EA;      /* 테두리 */
  --accent: #FF4F7B;    /* 두근 핑크 */
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
html, body { min-height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.shop { max-width: 980px; margin: 0 auto; padding-inline: 16px; padding-block: 16px 40px; display: grid; gap: 22px; }

/* 맨 위 */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; }
.search { flex: 1 1 220px; max-width: 340px; position: relative; display: flex; align-items: center; }
.search .s-ico { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; font: inherit; font-size: 15px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 99px;
  padding: 9px 14px 9px 38px; outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: #9AA0AA; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 79, 123, .15); }
.empty { text-align: center; display: grid; gap: 6px; justify-items: center; padding: 8px 0 4px; color: var(--muted); font-size: 14.5px; }
.empty p { margin: 0; }
.empty-t { color: var(--text); font-weight: 800; font-size: 17px; }
.reset { appearance: none; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; margin-top: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 99px; padding: 6px 14px; }
.reset:hover { border-color: var(--accent); color: var(--accent); }

/* 인사 */
.intro { display: grid; gap: 4px; padding-top: 6px; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .2em; color: var(--accent); }
.intro h1 { margin: 0; font-size: clamp(28px, 8vw, 40px); font-weight: 800; letter-spacing: -.035em; line-height: 1.15; text-wrap: balance; }
.intro p:last-child { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

/* 카드 격자 */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid li { display: flex; }
.card {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 8px 8px 14px;
  box-shadow: 0 1px 2px rgba(21, 23, 28, .04);
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s, border-color .18s;
  -webkit-tap-highlight-color: transparent;
}
.art { position: relative; aspect-ratio: 5 / 4; max-width: 100%; border-radius: 16px; background: var(--tint, #EEF0F3); display: grid; place-items: center; overflow: hidden; margin-bottom: 4px; }
.art img { width: 88%; height: auto; display: block; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.play {
  position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--text); color: #fff; display: grid; place-items: center; font-size: 12px; padding-left: 2px;
  box-shadow: 0 4px 10px rgba(21, 23, 28, .25); transition: transform .18s, background .18s;
}
.meta { display: flex; align-items: center; gap: 6px; padding-inline: 6px; }
.no { font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.new { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--accent); border-radius: 99px; padding: 1px 7px; }
.card strong { padding-inline: 6px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.hook { padding-inline: 6px; font-size: 13px; color: var(--muted); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chips { padding-inline: 6px; display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 4px; }
.chips i { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--bg); border-radius: 99px; padding: 2px 9px; }

a.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(21, 23, 28, .09); border-color: transparent; }
a.card:hover .art img { transform: scale(1.05) rotate(-1deg); }
a.card:hover .play, a.card:focus-visible .play { background: var(--accent); transform: scale(1.12); }
a.card:active { transform: translateY(0) scale(.98); }

/* 준비 중 */
.card.lock { background: transparent; border: 1.5px dashed #CDD1D8; box-shadow: none; }
.card.lock .art { background: repeating-linear-gradient(135deg, #ECEEF2 0 10px, #F3F4F6 10px 20px); }
.q { font-size: clamp(54px, 16vw, 72px); font-weight: 900; color: #C9CDD5; line-height: 1; }
.card.lock strong { color: #A9AEB8; letter-spacing: .1em; }

.ad { border: 1.5px dashed #CDD1D8; border-radius: 16px; min-height: 90px; display: grid; place-items: center; font-size: 12px; letter-spacing: .1em; color: #9AA0AA; }
.foot { margin: 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.foot a { color: inherit; }

@media (min-width: 720px) {
  .shop { padding-block: 28px 56px; gap: 28px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
