/* 엉뚱한 미니게임 목록 — 오목 팔레트(app.css 변수) 위에서만. 2026-10-08 시안
   다이얼: VARIANCE 6 · MOTION 4 · DENSITY 6. 반복 움직임은 "지금 재생 중인 미리보기 1개"뿐. */
.hub { max-width: 1200px; margin: 0 auto; padding: 18px 20px 72px; }
.hub-head { margin: 6px 0 18px; }
.hub-kick { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--accent); }
.hub-h1 { margin: 0; font-size: clamp(30px, 7.4vw, 56px); line-height: 1.04; font-weight: 900; letter-spacing: -.035em; color: var(--text); max-width: 12em; }

/* ---------- 썸네일 ---------- */
.th { position: relative; overflow: hidden; border-radius: 16px; background: var(--panel); aspect-ratio: 4 / 5; isolation: isolate; }
.th img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform .5s var(--ease), filter .4s; }
.th::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); background: linear-gradient(180deg, rgba(14,17,21,0) 55%, rgba(14,17,21,.55)); pointer-events: none; }
.pill { position: absolute; z-index: 2; font-size: 11px; font-weight: 800; line-height: 1; padding: 6px 8px; border-radius: 999px; letter-spacing: -.01em; }
.pill.time { left: 8px; bottom: 8px; color: #F2F5F8; background: rgba(14,17,21,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pill.new { left: 8px; top: 8px; color: #241500; background: var(--amber); }
.th.playing::before { content: ''; position: absolute; z-index: 2; right: 10px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--k, var(--accent)); box-shadow: 0 0 10px var(--k, var(--accent)); }

/* ---------- 카드 ---------- */
.gc { display: flex; flex-direction: column; gap: 9px; text-decoration: none; color: inherit; border-radius: 18px; outline-offset: 4px; -webkit-tap-highlight-color: transparent; }
.gc-m { display: flex; flex-direction: column; gap: 3px; padding: 0 2px; }
.gc-t { font-size: 15.5px; font-weight: 850; letter-spacing: -.02em; color: var(--text); }
.gc-f { font-size: 12.5px; line-height: 1.42; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.84em; }
.gc-r { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 11.5px; color: var(--text-3); }
.gc-r em { font-style: normal; font-weight: 700; color: var(--text-2); }
.like { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; color: var(--text-3); font-weight: 800; }
.like svg { width: 13px; height: 13px; fill: currentColor; }
.like b:empty { display: none; }
.gc:hover .th img, .gc:focus-visible .th img { transform: scale(1.04); }
.gc:hover .th, .gc:focus-visible .th { box-shadow: 0 14px 34px -14px var(--k), 0 0 0 1px color-mix(in srgb, var(--k) 45%, transparent); }
.gc:hover .gc-t, .gc:focus-visible .gc-t { color: #fff; }
.gc:active .th { transform: scale(.98); }
.th { transition: box-shadow .3s var(--ease), transform .15s var(--ease); }

/* ---------- 오늘의 추천 ---------- */
.feat { margin: 0 0 40px; }
.feat-a { display: grid; gap: 16px; text-decoration: none; color: inherit; border-radius: 22px; }
.feat .th.big { aspect-ratio: 4 / 3.4; border-radius: 22px; }
.feat .th.big img { object-position: 50% 42%; }
.feat-x { display: flex; flex-direction: column; gap: 8px; }
.feat-k { margin: 0; font-size: 12px; font-weight: 800; color: var(--k, var(--accent)); letter-spacing: .02em; }
.feat-t { margin: 0; font-size: clamp(28px, 6.4vw, 46px); line-height: 1.05; font-weight: 900; letter-spacing: -.035em; }
.feat-f { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); max-width: 30em; }
.feat-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 6px; }
.feat-meta > span:not(.like) { font-size: 12px; font-weight: 750; color: var(--text-2); padding: 6px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.feat-meta .like { margin-left: 4px; font-size: 12.5px; }
.feat-go { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 850; padding: 14px 22px; border-radius: 14px; color: var(--accent-ink); background: var(--accent); transition: transform .15s var(--ease), filter .15s; }
.feat-go::after { content: ''; width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.feat-a:hover .feat-go { filter: brightness(1.06); transform: translateY(-1px); }
.feat-a:active .feat-go { transform: scale(.97); }

/* ---------- 묶음 ---------- */
.shelf { margin: 0 0 34px; }
.sh-hd { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; }
.sh-hd h2 { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: -.025em; }
.sh-hd span { font-size: 12.5px; color: var(--text-3); }
.sh-hd i { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 800; color: var(--text-3); }
.mh-row { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; margin: 0 -20px; padding: 2px 20px 10px; scrollbar-width: none; }
.mh-row::-webkit-scrollbar { display: none; }
.mh-row > .gc { scroll-snap-align: start; }
.mh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.shelf.all { padding-top: 26px; border-top: 1px solid var(--line); }
.hub-note { margin: 28px 0 0; font-size: 12px; color: var(--text-3); }

/* ---------- 넓은 화면 ---------- */
@media (min-width: 760px) {
  .hub { padding: 34px 48px 96px; }
  .hub-head { margin: 10px 0 30px; }
  .feat { margin-bottom: 64px; }
  .feat-a { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 40px; }
  .feat .th.big { aspect-ratio: 16 / 11; }
  .feat-x { padding-bottom: 8px; gap: 12px; }
  .feat-f { font-size: 17px; }
  .shelf { margin-bottom: 52px; }
  .mh-row { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 22px 18px; }
  .mh-row:has(> :nth-child(5)) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mh-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 18px; }
  .gc-t { font-size: 16px; }
}
@media (min-width: 760px) and (max-width: 1080px) {
  .mh-row:has(> :nth-child(5)), .mh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 등장(한 번만) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .feat-a, .shelf { animation: hub-in .7s var(--ease) both; }
  .shelf:nth-of-type(2) { animation-delay: .08s; } .shelf:nth-of-type(3) { animation-delay: .14s; } .shelf:nth-of-type(4) { animation-delay: .2s; }
  @keyframes hub-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .th img, .th, .feat-go { transition: none; } }

/* 공유 버튼(카드 위 오른쪽) */
.gc-w { position: relative; min-width: 0; }
.mh-row > .gc-w { scroll-snap-align: start; }
.gc-share { position: absolute; top: 8px; right: 8px; z-index: 3; width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(14,17,21,.72); color: #E9EDF2; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gc-share span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gc-share:active { transform: scale(.92); }
#feat { position: relative; }
.feat-share { top: 12px; right: 12px; }

/* ---------- 대문에서 쓰는 같은 카드 (2026-10-08) ---------- */
.home-hub { margin: 0 0 30px; }
.home-hub .sh-hd { margin-top: 6px; }
.home-hub .sh-hd a { margin-left: auto; font-size: 13px; font-weight: 800; color: var(--accent); text-decoration: none; }
.home-hub #feat { margin-bottom: 30px; }
.home-hub .feat .th.big { aspect-ratio: 16 / 10; }
.home-sub { display: inline-block; margin: 2px 0 0; font-size: 13px; font-weight: 700; color: var(--text-2); text-decoration: none; }
.th .pill.soon { right: 8px; left: auto; bottom: 8px; color: #F2F5F8; background: rgba(14,17,21,.72); }
@media (min-width: 760px) {
  .home-hub .mh-row.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-hub .mh-row.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-hub .feat .th.big { aspect-ratio: 16 / 10; }
}

@media (min-width: 760px) { .home-hub .mh-row.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 759px) { .home-hub .mh-row { margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding-inline: 16px; } }

/* ♡ 좋아요: 카드 오른쪽 위, 공유 아이콘 바로 옆 (손가락 44px) — 2026-10-08 */
.gc-share { width: 44px; height: 44px; }
.gc-like { position: absolute; top: 8px; right: 58px; z-index: 3; height: 44px; min-width: 44px; padding: 0 12px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; border-radius: 22px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(14,17,21,.72); color: #E9EDF2; font: 800 13px/1 Pretendard, system-ui, sans-serif; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); -webkit-tap-highlight-color: transparent; }
.gc-like svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.gc-like[aria-pressed="true"] { color: #ff4f7b; }
.gc-like[aria-pressed="true"] svg { fill: currentColor; }
.gc-like b:empty { display: none; }
.gc-like:focus-visible, .gc-share:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.feat-like { top: 12px; right: 64px; }
.gc .th .pill.new { top: auto; bottom: 36px; }

/* 대표 게임(오목·DNA 대전): 크게, 16:10 — 2026-10-08 */
.mh-big { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 0 0 22px; }
.mh-big .th { aspect-ratio: 16 / 10; border-radius: 20px; }
.mh-big .gc-t { font-size: 19px; }
.mh-big .gc-f { -webkit-line-clamp: 2; min-height: 0; font-size: 13.5px; }
@media (min-width: 760px) { .mh-big { grid-template-columns: 1fr 1fr; gap: 22px; } }
.shelf.odd { padding-top: 26px; border-top: 1px solid var(--line); }

.home-hub .sh-hd span { font-size: 12.5px; color: var(--text-3); }
@media (max-width: 759px) { .home-hub .mh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; } }
@media (min-width: 760px) { .home-hub .mh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; } }

/* 대문 카드 균형 (2026-10-08): 제목 한 줄·설명 두 줄·배지 줄 높이 고정, 끝줄 빈칸 없음 */
.home-hub .gc-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-hub .gc-r { min-height: 20px; }
.th.fill { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--panel-2, #252B35); }
.th.fill::after { background: none; }
.fill-n { font-size: 48px; font-weight: 900; line-height: 1; color: var(--accent); letter-spacing: -.04em; }
.fill-t { font-size: 13px; font-weight: 800; color: var(--text-2); }
.gc-fill .gc:hover .th { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.mh-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; grid-auto-flow: row dense; }
.mh-bento .is-big { grid-column: span 2; }
.mh-bento .is-big .th { aspect-ratio: 16 / 10; border-radius: 20px; }
.mh-bento .is-big .gc-t { font-size: 19px; }
@media (min-width: 760px) {
  .mh-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 18px; }
  .mh-bento .is-big { grid-column: span 2; grid-row: span 2; }
  .mh-bento .is-big .gc { height: 100%; }
  .mh-bento .is-big .th { aspect-ratio: auto; flex: 1; min-height: 0; }
  .mh-bento .is-big .gc-f { -webkit-line-clamp: 2; }
}
.home-hub .mh-big + .mh-grid { margin-top: 4px; }
