/* 스토어 달란트 — 머리 뱃지 · 실시간 투표 띠 · 달란트 모으기(/store/talent/) · 숍(/store/shop/) · store.css 다음에 읽는다 */

/* 머리 뱃지 — 받을 수 있는 달란트 +N · 달란트숍 */
.tal-badge, .shop-badge { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 6px; border-radius: 16px; font-size: 12px; font-weight: 800; white-space: nowrap; flex: none; }
.tal-badge { background: linear-gradient(100deg, #3b2a06, #5a3f0a); color: #ffe7a6; box-shadow: inset 0 0 0 1px rgba(255, 210, 110, .35); }
.tal-badge img { width: 22px; height: 22px; }
.tal-badge b { font-size: 13px; color: #ffd36b; font-variant-numeric: tabular-nums; }
.shop-badge { padding: 0 12px; background: #2b2f45; color: #cfd8ff; box-shadow: inset 0 0 0 1px rgba(140, 160, 255, .3); }
.shop-badge svg { width: 15px; height: 15px; }
.shop-badge em { font-style: normal; color: #ffd36b; font-variant-numeric: tabular-nums; }
.tal-badge:hover, .shop-badge:hover { filter: brightness(1.15); }
.fly-coin { position: fixed; z-index: 80; width: 28px; height: 28px; pointer-events: none; }

/* 실시간 투표 띠 */
.vlive { position: relative; display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 40px; align-items: center; min-height: 350px; margin-top: 36px; padding: 36px 44px; border-radius: 20px; overflow: hidden; background: linear-gradient(110deg, #1b1640 0%, #2a2470 45%, #1d3a7a 100%); isolation: isolate; }
.vlive > img.bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(1.1); }
.vlive::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 78% 50%, rgba(90, 120, 255, .28), transparent 70%), linear-gradient(90deg, rgba(14, 12, 40, .92) 0, rgba(14, 12, 40, .55) 45%, rgba(14, 12, 40, .35) 100%); }
.vl-live { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 14px; background: rgba(255, 76, 59, .16); color: #ff8a7d; font-size: 12.5px; font-weight: 800; }
.vl-live i { width: 8px; height: 8px; border-radius: 50%; background: #ff4c3b; box-shadow: 0 0 0 0 rgba(255, 76, 59, .7); animation: vl-dot 1.6s infinite; }
@keyframes vl-dot { 70% { box-shadow: 0 0 0 9px rgba(255, 76, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 76, 59, 0); } }
.vl-l h2 { margin: 16px 0 10px; font-size: 34px; line-height: 1.25; font-weight: 900; letter-spacing: -.04em; text-wrap: balance; }
.vl-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: #c9cff5; font-size: 14px; font-weight: 600; }
.vl-meta b { color: #fff; font-variant-numeric: tabular-nums; }
.vl-go { margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 10px 0 24px; border: 0; border-radius: 26px; background: #ff4c3b; color: #fff; font-size: 16px; font-weight: 900; box-shadow: 0 10px 30px rgba(255, 76, 59, .35); }
.vl-go .rw { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px 0 6px; border-radius: 17px; background: rgba(0, 0, 0, .22); font-size: 14px; }
.vl-go .rw img { width: 24px; height: 24px; }
.vl-go:hover { filter: brightness(1.08); } .vl-go:active { transform: scale(.97); }
.vl-go.done { background: #fff; color: #2a2470; box-shadow: none; }
.vl-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; }
.vl-bars li { display: grid; grid-template-columns: 26px 40px minmax(0, 1fr) 64px; align-items: center; gap: 12px; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.vl-bars .rk { font-size: 20px; font-weight: 900; font-style: italic; color: #fff; text-align: center; }
.vl-bars li:first-child .rk { color: #ffd36b; }
.vl-bars .ic { width: 40px; height: 40px; border-radius: 11px; overflow: hidden; background: var(--g, #333); display: grid; place-items: center; }
.vl-bars .ic img { width: 100%; height: 100%; object-fit: cover; }
.vl-bars .bar { position: relative; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.vl-bars .fill { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); min-width: 6px; border-radius: 10px; background: linear-gradient(90deg, var(--c, #6b90ff), color-mix(in srgb, var(--c, #6b90ff) 60%, #fff)); transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.vl-bars .fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .35) 50%, transparent 80%); transform: translateX(-100%); animation: vl-sweep 2.8s infinite; }
.vl-bars li:nth-child(2) .fill::after { animation-delay: .3s; } .vl-bars li:nth-child(3) .fill::after { animation-delay: .6s; } .vl-bars li:nth-child(4) .fill::after { animation-delay: .9s; } .vl-bars li:nth-child(5) .fill::after { animation-delay: 1.2s; }
@keyframes vl-sweep { 60%, 100% { transform: translateX(100%); } }
.vl-bars .nm { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 800; white-space: nowrap; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.vl-bars .n { text-align: right; font-size: 16px; font-weight: 900; font-variant-numeric: tabular-nums; }
.vl-bars .n small { display: block; font-size: 11px; font-weight: 700; color: #ff8a7d; }
.vl-bars li.bump .bar { animation: vl-bump .7s; }
@keyframes vl-bump { 30% { box-shadow: 0 0 0 3px rgba(255, 211, 107, .6); } }
.vl-plus { position: absolute; right: 70px; font-size: 13px; font-weight: 900; color: #ffd36b; pointer-events: none; animation: vl-plus 1.2s forwards; }
@keyframes vl-plus { from { opacity: 0; transform: translateY(6px); } 20% { opacity: 1; } to { opacity: 0; transform: translateY(-22px); } }
.vl-empty { margin: 6px 0 0; font-size: 12.5px; color: #aab1e0; }

/* 투표 고르기 창 */
.pick-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .6); }
.pick { position: fixed; z-index: 51; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(720px, calc(100vw - 32px)); max-height: min(720px, calc(100dvh - 48px)); overflow-y: auto; padding: 26px; border-radius: 20px; background: #202024; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.pick h3 { margin: 0 0 4px; font-size: 20px; font-weight: 900; }
.pick > p { margin: 0 0 18px; color: var(--dim); font-size: 13.5px; }
.pick .px { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #333; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pick-grid button { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px; border: 0; border-radius: 14px; background: #2b2b31; text-align: left; }
.pick-grid button:hover { background: #34343c; }
.pick-grid button.on { background: #2f3f7a; box-shadow: inset 0 0 0 2px #6b90ff; }
.pick-grid .ic { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; background: var(--g, #333); }
.pick-grid .ic img { width: 100%; height: 100%; object-fit: cover; }
.pick-grid b { display: block; font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-grid small { color: var(--dim); font-size: 11.5px; font-variant-numeric: tabular-nums; }

/* 달란트 모으기 · 숍 공통 머리 띠 */
.tp-hero { position: relative; margin-top: 16px; min-height: 300px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: center; padding: 40px 48px; border-radius: 22px; overflow: hidden; background: linear-gradient(110deg, #1c1342, #3a1f6e 55%, #6b3a1c); isolation: isolate; }
.tp-hero.shop { background: linear-gradient(110deg, #0d1638, #1d3480 60%, #24326a); }
.tp-hero > img.bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.tp-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 10, 30, .9) 0, rgba(12, 10, 30, .55) 55%, rgba(12, 10, 30, .2) 100%); }
.tp-hero small { display: inline-block; padding: 4px 12px; border-radius: 12px; background: rgba(255, 211, 107, .16); color: #ffd36b; font-size: 13px; font-weight: 800; }
.tp-hero h1 { margin: 14px 0 10px; font-size: 38px; line-height: 1.22; font-weight: 900; letter-spacing: -.04em; text-wrap: balance; }
.tp-hero p { margin: 0; color: #d8dbf3; font-size: 15px; line-height: 1.6; }
.tp-hero .cta { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 24px; background: #ffd36b; color: #2b1d00; font-size: 15px; font-weight: 900; }
.tp-card { position: relative; padding: 24px; border-radius: 18px; background: rgba(10, 10, 24, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); text-align: center; }
.tp-card img.coin { width: 92px; height: 92px; margin: -6px auto 4px; animation: tp-float 3.4s ease-in-out infinite; }
@keyframes tp-float { 50% { transform: translateY(-8px) rotate(-4deg); } }
.tp-card .lab { color: #cfd3ee; font-size: 13px; font-weight: 700; }
.tp-card .big { display: block; margin: 4px 0 10px; font-size: 40px; font-weight: 900; color: #ffd36b; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tp-card .row { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; color: #cfd3ee; }
.tp-card .row b { color: #fff; font-variant-numeric: tabular-nums; }
.tp-card .meter { height: 8px; margin-top: 12px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.tp-card .meter i { display: block; height: 100%; width: var(--p, 0%); border-radius: 4px; background: linear-gradient(90deg, #ffb53d, #ffd36b); transition: width 1s cubic-bezier(.2, .8, .2, 1); }

/* 혜택 — 30달란트면 무엇이 열리나 */
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.perk { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; padding: 18px; border-radius: 16px; background: var(--bg2); }
.perk .ic { width: 56px; height: 56px; border-radius: 15px; overflow: hidden; background: #333; }
.perk .ic img { width: 100%; height: 100%; object-fit: cover; }
.perk b { display: block; font-size: 15px; font-weight: 800; }
.perk span { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; color: #ffd36b; font-size: 13px; font-weight: 800; }
.perk span img { width: 18px; height: 18px; }

/* 거리 탭 · 카드 */
.ttabs { position: sticky; top: 132px; z-index: 10; display: flex; gap: 8px; padding: 12px 0; background: var(--bg); overflow-x: auto; }
.ttabs button { flex: none; height: 40px; padding: 0 18px; border: 0; border-radius: 20px; background: var(--bg2); font-size: 14px; font-weight: 800; color: #ddd; }
.ttabs button.on { background: #f2f2f2; color: #111; }
.ttabs button i { font-style: normal; margin-left: 6px; color: #ffb53d; }
.tgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.task { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 18px; background: var(--bg2); transition: box-shadow .3s; }
.task.done { box-shadow: inset 0 0 0 1px rgba(47, 212, 139, .35); }
.task .top { display: flex; align-items: flex-start; gap: 12px; }
.task .top .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; overflow: hidden; background: #333; display: grid; place-items: center; }
.task .top .ic img { width: 100%; height: 100%; object-fit: cover; }
.task .top .ic svg { width: 22px; height: 22px; color: #cfd8ff; }
.task h3 { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 800; letter-spacing: -.02em; }
.task .meta { margin-top: 4px; color: var(--dim); font-size: 12.5px; }
.task .rw { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 3px; height: 30px; padding: 0 10px 0 4px; border-radius: 15px; background: rgba(255, 181, 61, .14); color: #ffc65a; font-size: 13.5px; font-weight: 900; }
.task .rw img { width: 22px; height: 22px; }
.task.done .rw { background: rgba(47, 212, 139, .14); color: var(--green); }
.choices { display: grid; gap: 8px; }
.choices button { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: #2f2f33; font-size: 14px; font-weight: 700; text-align: left; }
.choices button:hover:not(:disabled) { background: #393940; }
.choices button .pf { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(107, 144, 255, .22); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.choices button.mine .pf { background: rgba(107, 144, 255, .45); }
.choices button span, .choices button em { position: relative; }
.choices button em { font-style: normal; font-size: 13px; color: #cfd8ff; font-variant-numeric: tabular-nums; }
.choices button:disabled { cursor: default; color: #eee; }
.task textarea { width: 100%; min-height: 84px; resize: vertical; padding: 12px 14px; border: 0; border-radius: 12px; background: #2f2f33; color: #fff; font: inherit; font-size: 14px; line-height: 1.55; }
.task textarea:focus { outline: 2px solid #6b90ff; }
.task .wf { display: flex; align-items: center; gap: 10px; }
.task .wf small { color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.task .wf .go { margin-left: auto; height: 40px; padding: 0 18px; border: 0; border-radius: 20px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 800; }
.task .wf .go:disabled { background: #3a3a3a; color: #888; }
.task .sent { padding: 12px 14px; border-radius: 12px; background: rgba(47, 212, 139, .08); color: #bdf2d8; font-size: 13.5px; line-height: 1.5; }
.task .link { align-self: flex-start; height: 38px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 19px; background: #34343c; font-size: 13.5px; font-weight: 800; }
.task .lock { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #2a2a30; color: #c8c8d4; font-size: 13px; }
.task .lock a { flex: none; height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 17px; background: #ffd36b; color: #2b1d00; font-weight: 900; }
.tnote { margin: 18px 0 0; color: var(--dim); font-size: 12.5px; line-height: 1.6; }

/* 숍 */
.stabs { display: flex; gap: 8px; margin-top: 28px; }
.stabs button { height: 44px; padding: 0 22px; border: 0; border-radius: 22px; background: var(--bg2); font-size: 15px; font-weight: 800; color: #ddd; }
.stabs button.on { background: #f2f2f2; color: #111; }
.sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.item { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--bg2); }
.item .pic { position: relative; aspect-ratio: 16 / 10; background: var(--g, #333); overflow: hidden; }
.item .pic img.p { width: 100%; height: 100%; object-fit: cover; }
.item .pic .ic { position: absolute; left: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 15px; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.item .pic .ic img { width: 100%; height: 100%; object-fit: cover; }
.item .pic .tag { position: absolute; right: 12px; top: 12px; padding: 4px 10px; border-radius: 10px; background: rgba(0, 0, 0, .55); font-size: 11.5px; font-weight: 800; }
.item .bd { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.item h3 { margin: 0; font-size: 17px; font-weight: 900; letter-spacing: -.02em; }
.item p { margin: 0; color: #bdbdc6; font-size: 13.5px; line-height: 1.55; }
.item ul { margin: 0; padding: 0 0 0 18px; color: #d4d4dc; font-size: 13px; line-height: 1.7; }
.item .price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; padding-top: 10px; }
.item .price b { font-size: 22px; font-weight: 900; }
.item .price .cost { display: inline-flex; align-items: center; gap: 4px; color: #ffd36b; }
.item .price .cost img { width: 26px; height: 26px; align-self: center; }
.item .price small { color: var(--dim); font-size: 12.5px; }
.item .alt { display: inline-flex; align-items: center; gap: 4px; color: #ffc65a; font-size: 12.5px; font-weight: 700; }
.item .alt img { width: 16px; height: 16px; }
.item .meter { height: 6px; border-radius: 3px; background: #333; overflow: hidden; }
.item .meter i { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, #ffb53d, #ffd36b); border-radius: 3px; transition: width 1s; }
.item .act { display: flex; gap: 8px; margin-top: 6px; }
.item .act .btn { height: 44px; font-size: 14px; }
.item .act .btn[aria-disabled="true"] { background: #34343a; color: #9a9aa6; cursor: default; }
.item .when { color: #8fa6ff; font-size: 12.5px; font-weight: 700; }

@media (max-width: 1100px) {
  .vlive { grid-template-columns: 1fr; gap: 24px; padding: 32px; }
  .tp-hero { grid-template-columns: 1fr; }
  .perks, .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ttabs { top: 132px; }
}
@media (max-width: 720px) {
  .tal-badge span { display: none; }
  .tal-badge { padding: 0 10px 0 4px; height: 30px; }
  .shop-badge { height: 30px; padding: 0 10px; }
  .shop-badge em { display: none; }
  .vlive { margin-top: 28px; padding: 24px 18px; border-radius: 16px; min-height: 0; }
  .vl-l h2 { font-size: 23px; margin: 12px 0 8px; }
  .vl-meta { font-size: 12.5px; }
  .vl-go { margin-top: 18px; height: 48px; font-size: 15px; width: 100%; justify-content: space-between; }
  .vl-bars { gap: 9px; }
  .vl-bars li { grid-template-columns: 20px 34px minmax(0, 1fr) 46px; gap: 8px; }
  .vl-bars .ic { width: 34px; height: 34px; border-radius: 9px; }
  .vl-bars .bar { height: 34px; }
  .vl-bars .nm { font-size: 12.5px; left: 10px; }
  .vl-bars .n { font-size: 14px; }
  .tp-hero { padding: 26px 18px; border-radius: 16px; gap: 20px; margin-top: 8px; }
  .tp-hero h1 { font-size: 26px; }
  .tp-hero p { font-size: 13.5px; }
  .tp-card .big { font-size: 32px; }
  .perks, .sgrid, .tgrid { grid-template-columns: 1fr; }
  .ttabs { top: 108px; }
  .pick { padding: 20px 14px; }
  .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .vl-bars .fill::after, .vl-live i, .tp-card img.coin { animation: none; } }
@media (max-width: 420px) {
  .logo b { display: none; }
  .gnb a:not(.on) { display: none; }
  .hd-top { gap: 10px; } .hd-r { gap: 8px; }
}
