/* 쇼핑몰(손님 화면) — 포스터형 기본 디자인 */
@keyframes kb { from { transform: scale(1.03); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
@keyframes up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes run { to { transform: translateX(-50%); } }

/* 머리 */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--c-bg) 86%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--c-line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 18px; letter-spacing: -.03em; min-width: 0; }
.brand img { height: 34px; width: auto; max-width: 120px; object-fit: contain; }
.brand .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--c-accent); box-shadow: inset 0 0 0 2px var(--c-primary); position: relative; flex: none; }
.brand .dot::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 2px solid var(--c-primary); border-left-color: transparent; border-right-color: transparent; transform: rotate(35deg); }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { text-decoration: none; padding: 8px 11px; border-radius: 999px; font-weight: 650; font-size: 14px; color: var(--c-muted); }
.nav a.on, .nav a:hover { color: var(--c-ink); background: var(--c-soft); }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--c-line); background: var(--c-surface); text-decoration: none; font-size: 18px; flex: none; }
.icon-btn b { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--c-accent); color: var(--c-on-accent); font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--c-bg); }
@media (max-width: 760px) { .nav { display: none; } .top .tools { margin-left: auto; } }
.tools { display: flex; gap: 8px; }
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: color-mix(in srgb, var(--c-surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--c-line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 0 7px; text-decoration: none; font-size: 11px; font-weight: 650; color: var(--c-muted); }
  .tabbar a i { font-style: normal; font-size: 19px; line-height: 1.2; filter: grayscale(.5); }
  .tabbar a.on { color: var(--c-primary); } .tabbar a.on i { filter: none; }
  body.shop { padding-bottom: 72px; }
}

/* 영상 표지 */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--c-band); min-height: clamp(380px, 62vh, 620px); display: grid; align-items: end; isolation: isolate; }
.hero video, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .78; animation: kb 24s ease-in-out infinite alternate; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.18) 40%, rgba(0,0,0,.78) 100%), radial-gradient(120% 90% at 0% 100%, color-mix(in srgb, var(--c-primary) 55%, transparent), transparent 62%); }
.hero .wrap { width: 100%; padding-top: 48px; padding-bottom: 40px; }
.hero-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 11px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 12px; font-weight: 700; letter-spacing: .1em; animation: up .7s both; }
.hero-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 30%, transparent); }
.hero h1 { margin: 16px 0 12px; font-size: clamp(34px, 7vw, 68px); font-weight: 800; line-height: 1.06; letter-spacing: -.045em; text-wrap: balance; white-space: pre-line; text-shadow: 0 2px 30px rgba(0,0,0,.25); animation: up .8s .08s both; }
.hero h1 em { font-style: normal; color: var(--c-accent); }
.hero p { margin: 0; font-size: clamp(15px, 2vw, 18px); color: rgba(255,255,255,.82); max-width: 560px; animation: up .8s .16s both; }
.hero .ts-row { margin-top: 26px; animation: up .8s .24s both; }
.hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.hero-plain { min-height: 300px; }

/* 흐르는 띠 */
.ticker { overflow: hidden; background: var(--c-primary); color: var(--c-on-primary); white-space: nowrap; font-size: 13.5px; font-weight: 650; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker > div { display: inline-flex; padding: 12px 0; animation: run 40s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 26px; padding-right: 26px; }
.ticker span::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent); }
.ticker:hover > div { animation-play-state: paused; }

/* 카테고리 영상 칸 */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px auto 8px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 4; color: #fff; text-decoration: none; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; background: var(--c-band); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.tile:hover { transform: translateY(-3px); }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .85; animation: kb 28s ease-in-out infinite alternate; }
.tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.75)); }
.tile small { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; opacity: .75; }
.tile b { font-family: var(--font-head); font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; letter-spacing: -.04em; margin-top: 2px; }
.tile em { font-style: normal; font-size: 12.5px; opacity: .8; margin-top: 4px; }
.tile .cnt { position: absolute; top: 12px; right: 12px; background: var(--c-accent); color: var(--c-on-accent); font-weight: 800; font-size: 12px; padding: 4px 9px; border-radius: 999px; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; } .tile { aspect-ratio: 4 / 5; } }

/* 섹션 */
.sec { padding: 34px 0 6px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-head small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--c-primary); margin-bottom: 6px; }
.sec-head h2 { font-size: clamp(22px, 3.2vw, 30px); font-weight: 800; }
.sec-head p { margin: 6px 0 0; color: var(--c-muted); font-size: 14px; }
.sec-head a { flex: none; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--c-primary); }
.sec-band { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 180px; color: #fff; display: flex; align-items: flex-end; padding: 22px; margin-bottom: 16px; isolation: isolate; background: var(--c-band); }
.sec-band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .8; animation: kb 26s ease-in-out infinite alternate; }
.sec-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.1)); }
.sec-band h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; }
.sec-band small { display: block; font-size: 11px; letter-spacing: .18em; font-weight: 800; color: var(--c-accent); margin-bottom: 6px; }
.sec-band p { margin: 6px 0 0; opacity: .85; font-size: 14px; }

/* 상품 카드 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 23%, 250px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr 1fr; gap: 10px; } .rail { grid-auto-columns: 72%; } }
.pcard { display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .3s, box-shadow .3s; min-width: 0; }
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pcard .ph { position: relative; aspect-ratio: 1; background: var(--c-soft); overflow: hidden; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.pcard .ph .ico { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--c-accent) 45%, transparent), transparent 60%), var(--c-soft); }
.pcard .ph .badge { position: absolute; left: 10px; top: 10px; }
.pcard .bd { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard .t { font-weight: 700; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .s { font-size: 12.5px; color: var(--c-muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .pr { margin-top: auto; padding-top: 6px; font-weight: 800; font-size: 16.5px; letter-spacing: -.02em; }
.pcard .pr small { font-weight: 600; color: var(--c-muted); font-size: 12px; }
.pcard.sold { opacity: .55; }

/* 대회 목록 */
.tlist { display: flex; flex-direction: column; gap: 10px; }
.trow { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 14px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; }
.trow .dd { text-align: center; border-radius: calc(var(--radius) * .7); background: var(--c-primary); color: var(--c-on-primary); padding: 10px 4px; }
.trow .dd b { display: block; font-size: 20px; font-weight: 800; line-height: 1.1; }
.trow .dd span { font-size: 11px; opacity: .8; }
.trow h3 { font-size: 16px; } .trow p { margin: 3px 0 0; font-size: 13px; color: var(--c-muted); }
@media (max-width: 560px) { .trow { grid-template-columns: 64px 1fr; } .trow > :last-child { grid-column: 1 / -1; } }

/* 코치 */
.coaches { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.coach { text-align: center; padding: 18px 12px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
.coach .av { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 10px; object-fit: cover; background: var(--c-soft); display: grid; place-items: center; font-size: 30px; font-weight: 800; color: var(--c-primary); }
.coach b { display: block; font-size: 16px; } .coach p { margin: 4px 0 0; font-size: 12.5px; color: var(--c-muted); }

/* 상세 */
.detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; padding: 24px 0 40px; align-items: start; }
@media (max-width: 820px) { .detail { grid-template-columns: 1fr; gap: 18px; padding-top: 12px; } }
.gallery { position: sticky; top: 76px; }
@media (max-width: 820px) { .gallery { position: static; margin: 0 -16px; } .gallery .main { border-radius: 0 !important; } }
.gallery .main { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--c-soft); display: grid; place-items: center; font-size: 80px; position: relative; isolation: isolate; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .main video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .9; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding: 0 16px; }
.gallery .thumbs img { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; cursor: pointer; opacity: .6; border: 2px solid transparent; }
.gallery .thumbs img.on { opacity: 1; border-color: var(--c-primary); }
.info h1 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; margin: 8px 0 6px; }
.info .price { font-size: 28px; font-weight: 850; letter-spacing: -.03em; margin: 10px 0 18px; }
.info .price small { font-size: 14px; color: var(--c-muted); font-weight: 600; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--c-soft); margin-bottom: 18px; }
.facts dt { color: var(--c-muted); font-weight: 650; } .facts dd { margin: 0; font-weight: 600; }
.desc { font-size: 15px; line-height: 1.75; white-space: pre-line; padding: 20px 0; border-top: 1px solid var(--c-line); margin-top: 10px; }
.buybar { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--c-bg) 30%); display: flex; gap: 10px; }
@media (max-width: 760px) { .buybar { bottom: 64px; } }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-surface); }
.qty button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 18px; cursor: pointer; }
.qty input { width: 44px; text-align: center; border: 0; background: transparent; font-weight: 700; }
.entrants { margin-top: 16px; }
.entrants h3 { font-size: 15px; margin: 14px 0 8px; display: flex; gap: 8px; align-items: center; }
.entrants ol { margin: 0; padding-left: 22px; font-size: 14px; columns: 2; column-gap: 24px; }
@media (max-width: 560px) { .entrants ol { columns: 1; } }

/* 장바구니·주문 */
.page { padding: 22px 0 50px; }
.page h1 { font-size: 26px; font-weight: 800; margin-bottom: 16px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.cart-item .ph { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--c-soft); display: grid; place-items: center; font-size: 26px; }
.cart-item .ph img { width: 100%; height: 100%; object-fit: cover; }
.cart-item b { display: block; font-size: 15px; } .cart-item span { font-size: 12.5px; color: var(--c-muted); }
.sum { display: grid; gap: 8px; padding: 16px 0; font-size: 15px; }
.sum div { display: flex; justify-content: space-between; }
.sum .total { font-size: 20px; font-weight: 850; padding-top: 10px; border-top: 1px dashed var(--c-line); }
.two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }
.paylist { display: grid; gap: 8px; }
.payopt { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--c-line); border-radius: calc(var(--radius) * .7); background: var(--c-surface); cursor: pointer; font-weight: 650; }
.payopt input { accent-color: var(--c-primary); width: 18px; height: 18px; }
.payopt:has(input:checked) { border-color: var(--c-primary); background: var(--c-soft); }
.payopt .badge { margin-left: auto; }
.step-list { display: flex; gap: 4px; margin: 10px 0; }
.step-list span { flex: 1; text-align: center; font-size: 11.5px; font-weight: 700; padding: 7px 2px; border-radius: 8px; background: var(--c-soft); color: var(--c-muted); }
.step-list span.on { background: var(--c-primary); color: var(--c-on-primary); }
.ticket { padding: 16px; border-radius: var(--radius); background: var(--c-primary); color: var(--c-on-primary); margin-bottom: 10px; position: relative; overflow: hidden; }
.ticket::after { content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: var(--c-accent); opacity: .25; }
.ticket b { font-size: 17px; } .ticket .big { font-size: 34px; font-weight: 850; letter-spacing: -.03em; }

/* 바닥글 */
.foot { margin-top: 50px; padding: 30px 0 40px; background: var(--c-band); color: rgba(255,255,255,.7); font-size: 12.5px; line-height: 1.8; }
.foot b { color: #fff; font-size: 15px; }
.foot a { color: rgba(255,255,255,.85); margin-right: 14px; }
.foot .links { margin: 10px 0; }
.closed { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 30px; }

/* 간단 레이아웃(포스터 효과 끔) */
html[data-layout="simple"] .hero { min-height: 260px; }
html[data-layout="simple"] .hero video, html[data-layout="simple"] .tile video, html[data-layout="simple"] .sec-band video { animation: none; }
html[data-layout="simple"] .tiles { display: none; }
html[data-layout="simple"] .sec-band { display: none; }

@media (prefers-reduced-motion: reduce) { .hero video, .tile video, .sec-band video, .ticker > div { animation: none !important; } }
