/* 이용자 화면 2판 — 모션 · 아래 탭 · 첫 화면. app.css 다음에 읽는다.
   동작 줄이기(prefers-reduced-motion) 이면 움직임 없이 처음부터 다 보인다. */
:root { --tab-h: 64px; --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1); }
body.u { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
body.u .wrap { padding-bottom: 32px; }

/* 머리: 첫 화면에서는 사진 위에 투명, 내리면 검정 */
body.u .top { transition: background .35s var(--ease), box-shadow .35s; }
body.u.on-hero .top { position: fixed; left: 0; right: 0; background: transparent; }
body.u.on-hero.scrolled .top { background: #0B0B0Cee; box-shadow: 0 6px 24px #0004; backdrop-filter: blur(8px); }
body.u .top nav { display: none; }   /* 아래 탭이 같은 일을 함 */
.testchip { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #4A3A12; background: #F3E3BEee; border: 1px solid #E2CC92; border-radius: 999px; padding: 3px 10px; }

/* 화면 바뀔 때 */
.page-in { animation: pageIn .45s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }

/* 스크롤하면 나타나기 — JS 가 있고 동작 줄이기가 아닐 때만 숨겼다가 보여 줌 */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ── 첫 화면 ── */
.hero2 { position: relative; margin: 0 calc(-1 * var(--pad)); min-height: min(92vh, 720px); display: grid; align-items: end; overflow: hidden; color: #fff; isolation: isolate; }
.hero2 .bg { position: absolute; inset: -4%; background: #16251a center / cover no-repeat; animation: kenburns 22s ease-in-out infinite alternate; z-index: -3; }
@keyframes kenburns { from { transform: scale(1.08) translate(1%, 1%); } to { transform: scale(1) translate(-1%, -1%); } }
.hero2 .net { position: absolute; inset: 0; z-index: -2; opacity: .18;
  background-image: repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 22px), repeating-linear-gradient(-45deg, #fff 0 1px, transparent 1px 22px);
  animation: netDrift 18s linear infinite; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%); mask-image: linear-gradient(180deg, #000 0%, transparent 70%); }
@keyframes netDrift { to { background-position: 44px 0, -44px 0; } }
.hero2::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #0b0b0c66 0%, #0b0b0c10 30%, #0b0b0c 96%); }
.hero2 .cap { padding: 0 var(--pad) 60px; display: grid; gap: 12px; }
.live { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; background: #ffffff1f; border: 1px solid #ffffff33; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #5EE38A; box-shadow: 0 0 0 0 #5EE38A99; animation: pulse 1.8s infinite; }
.live.none i { background: #E8B85C; animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px #5EE38A00; } 100% { box-shadow: 0 0 0 0 #5EE38A00; } }
.hero2 h1 { font-size: clamp(40px, 12vw, 64px); line-height: 1.05; font-weight: 900; letter-spacing: -.03em; margin: 0; }
.hero2 h1 span { display: block; animation: wordUp .9s var(--ease) both; }
.hero2 h1 span:nth-child(2) { animation-delay: .12s; color: var(--gold); }
@keyframes wordUp { from { opacity: 0; transform: translateY(40%) skewY(4deg); clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.hero2 p.sub { margin: 0; color: #ffffffd9; animation: wordUp .9s .24s var(--ease) both; }
.hero2 .cta { display: flex; gap: 8px; flex-wrap: wrap; animation: wordUp .9s .36s var(--ease) both; }
.cue { position: absolute; left: 50%; bottom: 10px; width: 22px; height: 34px; margin-left: -11px; border: 2px solid #ffffff88; border-radius: 12px; }
.cue::after { content: ''; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.6s infinite; }
@keyframes cue { to { transform: translateY(10px); opacity: 0; } }

/* 반짝이는 단추 */
.shine { position: relative; overflow: hidden; }
.shine::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, #ffffff8c 48%, transparent 66%); transform: translateX(-120%); animation: shine 3.8s 1.2s infinite; }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.btn.ghost { background: #ffffff14; color: #fff; border-color: #ffffff55; backdrop-filter: blur(6px); }
.btn:active { transform: scale(.97); }

/* 바로가기 6칸 */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.quick a { display: grid; justify-items: center; gap: 6px; padding: 14px 6px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 700; transition: transform .25s var(--spring), box-shadow .25s; }
.quick a:hover, .quick a:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 22px #0000000f; }
.quick svg { width: 26px; height: 26px; stroke: var(--gold-d); }
.quick a:first-child { background: var(--ink); color: #fff; border-color: var(--ink); }
.quick a:first-child svg { stroke: var(--gold); }

/* 오늘 빈 시간 */
.today2 { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.today2 a, .today2 span { flex: none; min-width: 62px; text-align: center; border-radius: 14px; padding: 9px 6px; font-size: 13px; font-weight: 800; border: 1px solid var(--line); background: #fff; color: var(--muted); text-decoration: none; animation: chipIn .5s var(--spring) both; animation-delay: calc(var(--i) * 45ms); }
.today2 small { display: block; font-weight: 600; font-size: 11px; }
.today2 .open { background: var(--turf-l); border-color: #B9DEC4; color: var(--turf); }
.today2 .free { background: #E8F0FA; border-color: #C7D9EF; color: var(--sky); }
@keyframes chipIn { from { opacity: 0; transform: translateY(8px) scale(.9); } }

/* 이렇게 이용해요 (순서) */
.steps { display: grid; gap: 0; position: relative; padding-left: 4px; margin: 0; }
.steps::before { content: ''; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(var(--gold), var(--turf)); transform-origin: top; transform: scaleY(var(--draw, 1)); transition: transform 1.4s var(--ease); }
.js .steps.rv:not(.in) { --draw: 0; }
.steps li { list-style: none; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 10px 0; align-items: start; }
.steps li b { display: block; }
.steps .n { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-weight: 900; position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--paper); }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* 준비 중 */
.soon { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--gold-d); background: linear-gradient(100deg, #F6EDD9 30%, #FFF8E8 50%, #F6EDD9 70%) 0 0 / 220% 100%; border: 1px dashed #D9C08A; border-radius: 999px; padding: 2px 10px; animation: shimmer 2.4s linear infinite; }
.soon::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@keyframes shimmer { to { background-position: -220% 0; } }

/* 시설 정보 칸 */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts > div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.facts > div.wide { grid-column: 1 / -1; }
.facts span.k { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .02em; }
.facts b { font-size: 15px; }

/* 사진 */
.gal { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 6px; scrollbar-width: none; }
.gal figure { flex: none; width: 82%; max-width: 420px; margin: 0; scroll-snap-align: center; border-radius: 18px; overflow: hidden; position: relative; }
.gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.gal figure:hover img { transform: scale(1.05); }
.gal figcaption { position: absolute; left: 12px; bottom: 10px; color: #fff; font-size: 13px; font-weight: 700; text-shadow: 0 1px 6px #000a; }

/* 요금 카드 */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prices > div { border-radius: 16px; padding: 14px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 2px; }
.prices > div.night { background: var(--ink); color: #fff; border-color: var(--ink); }
.prices > div.night .k { color: #ffffffa6; }
.prices .k { font-size: 12px; color: var(--muted); font-weight: 700; }
.prices b { font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.prices b small { font-size: 13px; font-weight: 600; }
.prices > div.night b { color: var(--gold); }

/* 아이들 무료 띠 */
.kids { border-radius: 18px; padding: 16px; background: linear-gradient(120deg, #2F6FB0, #4C9BD9); color: #fff; display: grid; gap: 4px; position: relative; overflow: hidden; }
.kids::after { content: '⚽'; position: absolute; right: 14px; bottom: -6px; font-size: 54px; opacity: .25; animation: ball 3s var(--ease) infinite; }
@keyframes ball { 50% { transform: translateY(-10px) rotate(40deg); } }
.kids p { margin: 0; color: #ffffffd9; font-size: 14px; }

/* 아래 탭 */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: #0B0B0Cf2; backdrop-filter: blur(10px); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #ffffff14; }
.tabbar .in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); height: var(--tab-h); position: relative; }
.tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; color: #ffffff99; text-decoration: none; font-size: 11px; font-weight: 700; position: relative; z-index: 1; transition: color .25s; }
.tabbar svg { width: 22px; height: 22px; stroke: currentColor; transition: transform .35s var(--spring); }
.tabbar a.on { color: var(--gold); }
.tabbar a.on svg { transform: translateY(-2px) scale(1.12); }
.tabbar .ind { position: absolute; top: 6px; height: 4px; width: 20%; left: 0; display: grid; place-items: center; transition: transform .45s var(--spring); }
.tabbar .ind::before { content: ''; width: 26px; height: 4px; border-radius: 2px; background: var(--gold); }
body.u .dock { bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: 12px; animation: dockUp .45s var(--spring) both; }
@keyframes dockUp { from { transform: translateY(100%); opacity: 0; } }
body.u #toast { bottom: calc(var(--tab-h) + 96px); }

/* 예약 칸 움직임 */
.slot { animation: rowIn .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); position: relative; overflow: hidden; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-10px); } }
.slot.open::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--turf); transform: scaleY(0); transition: transform .3s var(--ease); }
.slot.open:hover::before, .slot.sel::before { transform: scaleY(1); }
.days button { transition: transform .25s var(--spring), background .2s; }
.days button[aria-pressed=true] { transform: translateY(-2px); box-shadow: 0 8px 18px #0000001f; }
.dock .sum b { display: inline-block; }
.bump { animation: bump .35s var(--spring); }
@keyframes bump { 50% { transform: scale(1.12); } }

/* 출입 번호 넘기기 */
.code .d { display: inline-block; animation: flip .6s var(--ease) both; animation-delay: calc(var(--i) * 90ms); transform-origin: 50% 60%; }
@keyframes flip { from { transform: rotateX(90deg); opacity: 0; } }

/* 예약 완료 — 체크 그리기 + 축하 조각 */
.okmark { width: 76px; height: 76px; margin: 0 auto; display: block; }
.okmark circle { stroke: var(--turf); stroke-width: 4; fill: none; stroke-dasharray: 230; stroke-dashoffset: 230; animation: draw .7s var(--ease) forwards; }
.okmark path { stroke: var(--turf); stroke-width: 6; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .45s .6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; animation: fall 2.4s var(--ease) forwards; }
@keyframes fall { to { transform: translate(var(--x), 105vh) rotate(var(--r)); opacity: .2; } }

/* 더보기 메뉴 · 자주 묻는 질문 */
.menu { display: grid; gap: 8px; }
.menu a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: transform .2s var(--spring); }
.menu a:active { transform: scale(.98); }
.menu a .ic { width: 40px; height: 40px; border-radius: 12px; background: #F6EDD9; display: grid; place-items: center; }
.menu a .ic svg { width: 22px; height: 22px; stroke: var(--gold-d); }
.menu a small { display: block; color: var(--muted); font-size: 13px; }
.menu a::after { content: '›'; font-size: 22px; color: var(--muted); }
details.qa { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; margin: 8px 0; }
details.qa summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: '+'; color: var(--gold-d); font-size: 22px; line-height: 1; transition: transform .3s var(--spring); }
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa p { margin: 0 0 14px; color: var(--ink2); }
.foot { margin-top: 32px; padding: 22px 0 6px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: grid; gap: 6px; }
.foot a { color: var(--gold-d); font-weight: 700; }
.pagehead { margin: 22px 0 10px; display: grid; gap: 4px; }
.pagehead .en { font-size: 12px; letter-spacing: .16em; font-weight: 800; color: var(--gold-d); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .js .steps.rv:not(.in) { --draw: 1; }
}
