:root {
  --blue: #0a3ea6;
  --red: #ff2a26;
  --yellow: #ffcc00;
  --ink: #111;
  --muted: #666;
  --line: #e4e4e4;
  --bg: #fafaf7;
  --card: #fff;
  --off: #fff4f0;
  --closed: #f0f0f0;
}
* { box-sizing: border-box; }
body { word-break: keep-all; margin: 0; background: var(--bg); color: var(--ink); font-family: 'Pretendard', 'Malgun Gothic', sans-serif; line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* 헤더 */
header.top { position: sticky; top: 0; z-index: 10; background: rgba(250,250,247,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
header.top img { width: 36px; height: 36px; }
header.top .brand { font-weight: 900; letter-spacing: .08em; color: var(--blue); }
header.top nav { margin-left: auto; display: flex; gap: 16px; font-size: 14px; }
header.top nav a { text-decoration: none; color: var(--muted); }
@media (max-width: 640px) { header.top nav { display: none; } }

/* 히어로 */
/* 첫 화면: 한 화면 꽉, 가운데 정렬 */
.hero { min-height: calc(100svh - 60px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 0 72px; position: relative; }
.hero-logo { width: min(220px, 50vw); mix-blend-mode: multiply; margin-bottom: 12px; }
.hero-kicker { margin: 0 0 6px; font-size: 15px; font-weight: 700; letter-spacing: .3em; color: var(--muted); }
.hero h1 { font-size: clamp(26px, 4.6vw, 48px); line-height: 1.2; margin: 0 0 28px; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-zones { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); justify-content: center; gap: 14px; margin: 0 0 8px; width: 100%; }
.hero-zones a { text-decoration: none; color: var(--c); font-weight: 700; font-size: 14px; }
.hero-zones img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; border: 3px solid var(--c); transition: transform .2s; }
.hero-zones a:hover img { transform: translateY(-4px); }
.hero-zones span { display: block; margin-top: 8px; }
@media (max-width: 640px) { .hero-zones { gap: 8px; } .hero-zones span { font-size: 11px; } }
.hero-desc { color: var(--muted); margin: 0; font-size: 16px; }
.scroll-hint { position: absolute; bottom: 20px; font-size: 22px; color: var(--muted); text-decoration: none; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(8px); } }
@media (max-width: 640px) { .hero-desc br { display: none; } }

/* 예약 버튼 칸 */
.book-cta { margin-top: 48px; padding: 40px 20px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.book-cta p { margin: 0 0 16px; font-weight: 700; font-size: 18px; }
.book-cta .btns { justify-content: center; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--ink); background: #fff; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.naver { background: #03c75a; border-color: #03c75a; color: #fff; }
.btn.space { background: #704de4; border-color: #704de4; color: #ffd014; }

section { padding: 120px 0; border-top: 1px solid var(--line); scroll-margin-top: 40px; }
section h2 { font-size: 34px; margin: 0 0 12px; text-align: center; }
section > .sub:first-of-type { text-align: center; margin-bottom: 56px; }
section .sub { color: var(--muted); margin: 0 0 28px; }
@media (max-width: 640px) {
  section { padding: 80px 0; }
  section h2 { font-size: 28px; }
  section > .sub:first-of-type { margin-bottom: 40px; }
}

/* 공간 — 한 줄에 한 공간 */

/* 좌우 번갈아 배치 + 공간마다 포인트 색 */
.zone { --accent: var(--blue); --tint: #eef3ff; display: grid; grid-template-columns: 1fr 1.7fr; gap: 40px; align-items: center; padding: 72px 0; position: relative; }
.zone.party { --accent: #e0a800; --tint: #fff6d6; }
.zone.multi { --accent: #0f9d58; --tint: #e9f7ee; }
.zone { scroll-margin-top: 70px; }
.zone.extra { --accent: var(--red); --tint: #fff0ef; }
.zone:nth-of-type(even) { grid-template-columns: 1.7fr 1fr; }
.zone:nth-of-type(even) .zone-text { order: 2; }
.zone-text { position: relative; padding: 8px 0 8px 22px; border-left: 4px solid var(--accent); }
.zone-no { position: absolute; top: -46px; left: 14px; font-size: 96px; font-weight: 900; line-height: 1; color: var(--tint); z-index: -1; letter-spacing: -.04em; }
.zone h3 { font-size: 30px; margin: 0 0 10px; }
.zone p { margin: 0 0 14px; color: var(--muted); }
.zone ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.zone li { background: var(--tint); color: var(--ink); font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.zone .slider { box-shadow: 14px 14px 0 var(--tint); }
.zone:nth-of-type(even) .slider { box-shadow: -14px 14px 0 var(--tint); }
@media (max-width: 800px) {
  .zone { grid-template-columns: 1fr; gap: 24px; padding: 48px 0; }
  .zone:nth-of-type(even) .zone-text { order: 0; }
  .zone .slider, .zone:nth-of-type(even) .slider { box-shadow: 0 8px 0 var(--tint); }
  .zone-no { font-size: 72px; top: -34px; }
}

/* 사진 슬라이드 */
.slider { position: relative; border-radius: 16px; overflow: hidden; background: #ddd; }
.slider .track { aspect-ratio: 3/2; display: flex;overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.slider .track::-webkit-scrollbar { display: none; }
.slider img { flex: 0 0 100%; width: 100%; height: 100%; min-width: 0; object-fit: cover; scroll-snap-align: start; }
.slider img[src$="plan.jpg"] { object-fit: contain; background: #cdcdc8; }
.slider .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,.85); font-size: 22px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.slider .nav.prev { left: 10px; }
.slider .nav.next { right: 10px; }
.slider .count { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.slider .dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.slider .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); }
.slider .dots i.on { background: #fff; }
@media (max-width: 640px) { .slider .nav { width: 32px; height: 32px; font-size: 18px; } }

/* 달력 */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head h3 { margin: 0; font-size: 22px; }
.cal-head button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 14px; cursor: pointer; font-size: 16px; }
.cal-head button:disabled { opacity: .3; cursor: default; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .dow { text-align: center; font-size: 13px; color: var(--muted); padding: 4px 0; }
.cal .dow.sun, .cal .day.off .num { color: var(--red); }
.cal .dow.sat { color: var(--blue); }
.cal .day { background: var(--card); border: 1px solid var(--line); border-radius: 10px; min-height: 96px; padding: 6px; cursor: pointer; text-align: left; font: inherit; display: flex; flex-direction: column; gap: 3px; }
.cal .day:hover { border-color: var(--blue); }
.cal .day.empty { visibility: hidden; }
.cal .day.out { background: transparent; border-style: dashed; cursor: default; color: #bbb; }
.cal .day.off { background: var(--card); }
.cal .day.sat .num { color: var(--blue); }
.cal .day.today { outline: 2px solid var(--blue); }
.cal .num { font-weight: 700; font-size: 14px; }
.cal .hname { font-size: 10px; color: var(--red); line-height: 1.2; }
.slot { font-size: 12px; border-radius: 6px; padding: 2px 5px; display: flex; justify-content: space-between; gap: 4px; white-space: nowrap; overflow: hidden; }
.slot { border-top: 1px dashed #eee; border-radius: 0; }
.slot.closed { color: #c4c4c4; }
.slot.closed .p { font-weight: 400; }
.cal .day.today { outline: none; border-color: var(--ink); }
.slot .p { font-weight: 700; }
@media (max-width: 640px) {
  .cal .day { min-height: 74px; padding: 4px; }
  .cal { gap: 2px; }
  .cal .day { padding: 3px 2px; }
  .slot { font-size: 10px; padding: 1px 0; justify-content: center; line-height: 1.4; letter-spacing: -.03em; }
  .slot .n { display: none; }
}

/* 상세 */
dialog { border: none; border-radius: 18px; padding: 0; width: min(440px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(0,0,0,.4); }
.detail { padding: 22px; }
.detail h3 { margin: 0 0 4px; }
.detail .rows { margin: 16px 0; display: grid; gap: 8px; }
.detail .row { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.detail .row small { color: var(--muted); display: block; }
.detail .row .st { font-weight: 700; text-align: right; }
.detail .row.closed { opacity: .45; }
.detail .note { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.detail .close { float: right; border: none; background: none; font-size: 22px; cursor: pointer; }

/* 가격표 */
table.price { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; }
table.price th, table.price td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; }
table.price th { background: #f2f2ee; font-weight: 600; }
table.price td:first-child { text-align: left; font-weight: 700; }
table.price td small { display: block; font-weight: 400; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.rules { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; font-size: 14px; }
.rules div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }

/* 갤러리 */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; background: #ddd; position: relative; aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; padding: 3px 10px; border-radius: 999px; }

/* 이용 안내 */
.notice { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.notice > div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.notice h4 { margin: 0 0 8px; }
.notice ul { margin: 0; padding-left: 18px; font-size: 14px; color: #444; }
.notice li { margin-bottom: 4px; }

/* 게임 */
.game-box { border: 2px dashed var(--blue); border-radius: 20px; padding: 40px 20px; text-align: center; color: var(--blue); background: #f3f6ff; }

footer { padding: 40px 0 60px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }

/* 첫 화면 설명 */
.hero .hero-desc { margin: 24px 0 20px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-facts li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; font-size: 13px; color: var(--muted); min-width: 120px; }
.hero-facts b { display: block; font-size: 17px; color: var(--ink); }
@media (max-width: 640px) {
  .hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .hero-facts li { min-width: 0; padding: 8px; }
  .hero .hero-desc { font-size: 14px; }
}

/* 첫 화면 위계: 큰 제목 → 부제 → 주소 */
.hero h1 { font-size: clamp(34px, 6.4vw, 64px); margin: 0 0 10px; }
.hero-sub { margin: 0 0 8px; font-size: clamp(16px, 2.2vw, 21px); font-weight: 700; color: #333; }
.hero-addr { margin: 0 0 28px; font-size: 14px; color: var(--muted); }

/* 상품 아이콘: 밤샘(파랑) · 낮+밤(노랑→파랑) · 낮(노랑→흰색) */
.pico { display: inline-block; width: 22px; height: 22px; border-radius: 6px; vertical-align: middle; margin-right: 6px; flex: none;
  background: url(img/rocket.png) center / 74% no-repeat, var(--g); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.pico.p-night { --g: linear-gradient(135deg, #0a3ea6 0%, #2a5fd0 45%, #0a3ea6 70%, #062c7a 100%); }
.pico.p-full  { --g: linear-gradient(45deg, #f6c33c 0%, #f6c33c 38%, #2a5fd0 62%, #0a3ea6 100%); }
.pico.p-day   { --g: linear-gradient(45deg, #f6c33c 0%, #f9dc84 40%, #fff 75%, #f4f4f4 100%); }
.legend .pico { width: 18px; height: 18px; border-radius: 5px; margin-right: 2px; }
.slot .pico { width: 15px; height: 15px; border-radius: 4px; margin-right: 3px; }
.slot .n { display: inline-flex; align-items: center; }
.slot.closed .pico { filter: grayscale(1); opacity: .5; }
.detail .row .pico { width: 34px; height: 34px; border-radius: 9px; margin-right: 12px; }
.detail .row > div:first-child { display: flex; align-items: center; }
table.price .pico { width: 26px; height: 26px; border-radius: 7px; float: left; margin: 2px 10px 0 0; }
@media (max-width: 640px) {
  .slot .n { display: none; }
  .slot { justify-content: center; gap: 2px; }
  .slot .pico { width: 10px; height: 10px; border-radius: 3px; margin: 0; background-size: 0, auto; }
}
.slot > .pico.m { display: none; }
@media (max-width: 640px) { .slot > .pico.m { display: inline-block; } }

/* 지도 */
.map-box { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.map-box .root_daum_roughmap { width: 100% !important; }
#location .sub { text-align: center; }

/* 쿠폰 */
.coupon { background: #fff; border: 1px solid var(--line); border-left: 6px solid #03c75a; border-radius: 16px; padding: 18px 20px; margin: 0 auto 32px; max-width: 640px; }
.coupon-main { display: flex; align-items: center; gap: 16px; }
.coupon-rate { flex: none; width: 64px; height: 64px; border-radius: 50%; background: #e8f9ef; color: #03a64a; font-weight: 900; font-size: 24px; display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.coupon-rate small { font-size: 14px; }
.coupon b { display: block; font-size: 17px; }
.coupon-meta { font-size: 14px; color: var(--muted); }
.coupon-meta em { font-style: normal; font-weight: 800; color: #03c75a; }
.coupon-code { margin-top: 12px; font-size: 14px; color: var(--muted); }
.coupon-code code { font-size: 15px; font-weight: 700; color: var(--ink); background: #f4f4f1; padding: 2px 8px; border-radius: 6px; letter-spacing: .05em; }
.coupon details { margin-top: 8px; font-size: 13px; color: var(--muted); }
.coupon summary { cursor: pointer; }
.coupon ul { margin: 6px 0 0; padding-left: 18px; }
.cal .num { display: flex; align-items: center; gap: 4px; }
.cmark { white-space: nowrap; font-size: 10px; font-weight: 800; color: #fff; background: #03c75a; border-radius: 4px; padding: 0 4px; line-height: 16px; }
.cnote { margin: 10px 0 0; font-size: 13px; background: #e8f9ef; color: #027a37; border-radius: 10px; padding: 8px 12px; }
.cprice { display: block; font-size: 12px; color: #03a64a; font-weight: 700; }
@media (max-width: 640px) { .cmark { font-size: 8px; padding: 0 2px; line-height: 12px; } }

/* 글자 드래그·사진 끌기 막기 (쿠폰 번호는 복사할 수 있게 남김) */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
img { -webkit-user-drag: none; user-drag: none; }
.coupon-code code, input { -webkit-user-select: text; user-select: text; }
.coupon-rules { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.coupon-rules b { display: inline; font-size: 13px; color: var(--ink); }

/* 좁은 화면: 짝수 줄(파티존 등)도 한 칸으로 */
@media (max-width: 800px) {
  .zone:nth-of-type(even) { grid-template-columns: 1fr; }
}
a.coupon { display: block; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
a.coupon:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(3,199,90,.15); }
.coupon-go { display: block; margin-top: 12px; text-align: right; font-size: 14px; font-weight: 800; color: #03c75a; }

/* 첫 화면 배경: PC 게임룸 사진을 흐리고 어둡게 (화면 폭 전체) */
.hero { isolation: isolate; color: #fff; }
.hero::before { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: linear-gradient(rgba(8,12,30,.72), rgba(8,12,30,.82)), url(img/hero-bg.jpg) center / cover no-repeat; }
.hero-logo { mix-blend-mode: normal; background: #fff; border-radius: 28px; padding: 14px; width: min(190px, 44vw); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.hero h1 { color: #fff; }
.hero h1 em { color: #8fb0ff; }
.hero-sub { color: #f0f0f0; }
.hero-addr, .hero .hero-desc { color: rgba(255,255,255,.75); }
.hero-zones span { color: #fff; }
.hero-facts li { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.7); }
.hero-facts b { color: #fff; }
.scroll-hint { color: rgba(255,255,255,.8); }
html, body { overflow-x: clip; }


/* 하단 사업자 정보 */
footer .biz { font-size: 13px; line-height: 1.8; }
footer .biz b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
footer .biz span + span::before { content: '|'; margin: 0 8px; color: #ccc; }

/* 날짜 줄 높이 고정: 공휴일 이름·쿠폰 표시가 있어도 가격 줄 위치가 같게 */
.cal .num { height: 20px; overflow: hidden; white-space: nowrap; min-width: 0; }
.cal .hname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
.cal .cmark { flex: none; }
@media (max-width: 640px) { .cal .num { height: 16px; } .cal .hname { display: none; } }

/* 달력 안내 */
.cal-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.cal-note p { margin: 0 0 4px; }
.cal-note b { color: var(--ink); }

/* 환불 기준 */
.notice { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .notice { grid-template-columns: 1fr; } }
.refund li b { color: var(--red); }
.refund h4 small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }
.refund table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font-size: 14px; }
.refund th, .refund td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.refund th { font-weight: 400; color: #444; width: 50%; }
table.price tr.sub-head th { font-size: 13px; color: var(--muted); background: #f8f8f5; }
table.price th[colspan] { border-left: 1px solid var(--line); }
@media (max-width: 640px) {
  table.price { font-size: 12px; }
  table.price th, table.price td { padding: 8px 3px; }
  table.price td:first-child { padding-left: 8px; }
  table.price .pico { display: none; }
  table.price td small { font-size: 10px; }
}
table.price th[rowspan]:last-child, table.price td:last-child { border-left: 1px solid var(--line); }
table.price .vl { border-left: 1px solid var(--line); }
footer .by { display: inline-block; margin-top: 6px; font-size: 12px; color: #999; }

/* 슬라이드 화살표 작게 */
.slider .nav { width: 28px; height: 28px; font-size: 16px; line-height: 1; background: rgba(255,255,255,.7); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.slider .nav.prev { left: 8px; }
.slider .nav.next { right: 8px; }
@media (max-width: 640px) { .slider .nav { width: 24px; height: 24px; font-size: 14px; } }
