/* 페스티벌 사이트(발표: 맥·PC 화면 기준). 색·글꼴 바탕은 style.css 의 변수를 쓴다. */
:root { --paper: #f6efdf; --hand: "Gaegu", "Pretendard Variable", sans-serif; --panel-w: 440px; --drawer-w: 560px; --accent: #c4473a; --teal: #2f6b70; }
body { background: #f3ead6; }

/* 상단 띠: 가상 사이트 표기 + 이름 + 탭 */
.sbar { position: fixed; inset: 0 0 auto 0; height: 56px; z-index: 40; display: flex; align-items: center; gap: 14px; padding: 0 18px;
  background: rgba(246, 239, 223, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.sbar .virtual { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--card); white-space: nowrap; }
.sbar .brand { font: 700 24px/1 var(--hand); letter-spacing: -.01em; white-space: nowrap; }
.sbar .brand small { font: 600 12px var(--font); color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.sbar nav { margin-left: auto; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--line-2); }
.sbar nav button { border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 700; padding: 8px 15px; border-radius: 999px; color: var(--ink-2); }
.sbar nav button[aria-current="page"] { background: var(--ink); color: var(--paper); }
.sbar .lab { font-size: 12px; color: var(--muted); text-decoration: none; margin-left: 6px; }
#map { position: fixed; inset: 56px 0 0 0; }

/* 왼쪽 판 */
.spanel { position: fixed; z-index: 30; top: 70px; left: 14px; bottom: 14px; width: var(--panel-w); background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.spanel .sc { overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.sec-h { padding: 22px 24px 8px; }
.sec-h .k { font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: .04em; }
.sec-h h2 { margin: 6px 0 6px; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
.sec-h p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.blk { padding: 14px 24px; border-top: 1px solid var(--line-2); }
.blk h3 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 800; letter-spacing: .02em; }
.facts { display: grid; grid-template-columns: 84px 1fr; gap: 6px 12px; font-size: 14px; }
.facts dt { color: var(--muted); font-weight: 700; } .facts dd { margin: 0; }
.cta { display: flex; gap: 8px; flex-wrap: wrap; }
.cta button { border: 0; cursor: pointer; font-weight: 800; font-size: 14px; padding: 11px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.cta button.ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); }
.note-s { font-size: 12px; color: var(--muted); line-height: 1.5; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--line-2); color: var(--ink-2); margin-right: 4px; }

/* 목록(노선·구역·명소) */
.rows { list-style: none; margin: 0; padding: 4px 10px 14px; }
.rows li button { width: 100%; text-align: left; border: 0; background: none; cursor: pointer; padding: 12px 14px; border-radius: 12px; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; }
.rows li button:hover, .rows li button[aria-pressed="true"] { background: var(--paper); }
.rows .sw { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fffaf0; font: 700 17px var(--hand); }
.rows .ic img { width: 30px; height: auto; }
.rows .t { font-weight: 800; font-size: 15px; line-height: 1.3; }
.rows .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.rows .r { font-size: 12px; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.grp { padding: 14px 24px 2px; font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .03em; }

/* 라인업 시간표 */
.days { display: flex; gap: 6px; padding: 8px 24px 4px; }
.days button { border: 1.5px solid var(--ink); background: var(--card); border-radius: 999px; padding: 7px 14px; font-weight: 800; cursor: pointer; }
.days button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tt { padding: 8px 18px 18px; display: grid; gap: 8px; }
.tt .st { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tt .st h4 { margin: 0; padding: 9px 12px; font-size: 13px; color: #fffaf0; display: flex; justify-content: space-between; }
.tt .slot { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 9px 12px; border-top: 1px dashed var(--line); font-size: 14px; }
.tt .slot .tm { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; }
.tt .slot .a { font-weight: 800; } .tt .slot .g { font-size: 12px; color: var(--muted); }

/* 티켓 카드 */
.tix { display: grid; gap: 10px; padding: 6px 18px 18px; }
.tix .tk { border: 1.5px solid var(--ink); border-radius: 14px; padding: 12px 14px; background: var(--paper); position: relative; }
.tix .tk::after { content: ""; position: absolute; right: 122px; top: 0; bottom: 0; border-right: 1.5px dashed var(--ink); }
.tix .tk .n { font-weight: 800; padding-right: 120px; } .tix .tk .p { position: absolute; right: 0; width: 122px; text-align: center; top: 50%; transform: translateY(-50%); font: 700 20px/1.1 var(--hand); padding: 0 8px; }
.tix .tk .d { font-size: 13px; color: var(--ink-2); margin-top: 4px; padding-right: 120px; }

/* 지도 위 표지 */
.hub-e { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.hub-e .pin { width: 16px; height: 16px; border-radius: 50%; background: var(--c); border: 3px solid #fffaf0; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.hub-e .nm { font: 700 17px var(--hand); text-shadow: 0 0 3px #fffaf0, 0 0 3px #fffaf0, 0 0 4px #fffaf0; white-space: nowrap; }
.hub-e.dim { opacity: .35; }
.zone-e { display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.zone-e img { filter: drop-shadow(0 2px 2px rgba(60,40,20,.3)); transition: transform .15s; }
.zone-e .nm { font: 700 17px var(--hand); white-space: nowrap; text-shadow: 0 0 3px #fffaf0, 0 0 3px #fffaf0, 0 0 4px #fffaf0, 0 0 4px #fffaf0; margin-top: -2px; }
.zone-e.small img { transform: scale(.8); } .zone-e.small .nm { font-size: 15px; }
.zone-e.tiny img { transform: scale(.6); } .zone-e.tiny .nm { font-size: 13px; }
.zone-e.sel img { transform: scale(1.3); } .zone-e.sel .nm { color: var(--accent); font-size: 19px; }
.spot-e { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.spot-e .no { width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fffaf0; display: grid; place-items: center; font: 700 16px var(--hand); border: 2px solid #fffaf0; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.spot-e .nm { font: 700 16px var(--hand); text-shadow: 0 0 3px #fffaf0, 0 0 3px #fffaf0, 0 0 4px #fffaf0; white-space: nowrap; }

/* 오른쪽 상세 서랍(구역 장면) */
.drawer { position: fixed; z-index: 35; top: 70px; right: 14px; bottom: 14px; width: var(--drawer-w); background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; transform: translateX(110%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.drawer.open { transform: none; }
.drawer .dh { display: flex; align-items: center; gap: 10px; padding: 16px 18px 10px; }
.drawer .dh h2 { margin: 0; font-size: 22px; flex: 1; } .drawer .dh button { border: 0; background: var(--line-2); border-radius: 999px; width: 34px; height: 34px; cursor: pointer; font-size: 18px; }
.drawer .vt { display: flex; gap: 4px; padding: 0 18px 10px; flex-wrap: wrap; }
.drawer .vt button { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 11px; font-size: 13px; font-weight: 800; cursor: pointer; color: var(--ink-2); }
.drawer .vt button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.drawer .scene { margin: 0 18px; height: 330px; border-radius: 14px; overflow: hidden; background: #efe6d2; position: relative; flex: none; }
.drawer .scene canvas, .drawer .scene img, .drawer .scene iframe { width: 100%; height: 100%; display: block; border: 0; object-fit: cover; }
.drawer .scene .empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); font-size: 14px; line-height: 1.6; border: 2px dashed var(--line); border-radius: 14px; }
.drawer .db { overflow-y: auto; padding: 12px 18px 18px; font-size: 14.5px; line-height: 1.6; }
.drawer .db h3 { margin: 12px 0 4px; font-size: 13px; color: var(--muted); }

/* 첫 화면(표지) */
.cover { position: fixed; inset: 0; z-index: 60; background: #f3ead6; display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; transition: opacity .6s, visibility .6s; }
.cover.gone { opacity: 0; visibility: hidden; }
.cover .art { position: relative; overflow: hidden; }
.cover .art canvas { width: 100%; height: 100%; display: block; }
.cover .txt { padding: 64px 64px 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.cover .txt .virtual { align-self: flex-start; font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--card); }
.cover .txt h1 { margin: 0; font: 700 76px/1.05 var(--hand); letter-spacing: -.03em; word-break: keep-all; }
.cover .txt h1 small { font: 800 14px var(--font); letter-spacing: 0; vertical-align: top; margin-left: 8px; padding: 3px 8px; border: 1.5px solid var(--ink); border-radius: 99px; }
.cover .txt .sub { font-size: 20px; font-weight: 700; color: var(--ink-2); }
.cover .txt .meta { display: flex; gap: 22px; font-size: 16px; font-weight: 700; }
.cover .txt .meta span b { display: block; font-size: 12px; color: var(--muted); font-weight: 800; letter-spacing: .04em; }
.cover .txt .go { align-self: flex-start; border: 0; cursor: pointer; background: var(--ink); color: var(--paper); font-weight: 800; font-size: 17px; padding: 15px 26px; border-radius: 999px; }
.cover .txt .fine { font-size: 12px; color: var(--muted); max-width: 520px; line-height: 1.6; }

/* 쿠폰 앱 목업(폰 틀) */
.phone-wrap { position: fixed; inset: 0; z-index: 70; background: rgba(29,36,34,.55); display: none; place-items: center; }
.phone-wrap.open { display: grid; }
.phone { width: 390px; height: 800px; border-radius: 54px; background: #1d2422; padding: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.4); position: relative; }
.phone .scr { width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: var(--paper); position: relative; }
.phone .x { position: absolute; right: -54px; top: 0; border: 0; background: var(--card); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 20px; }

.legs { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; }
.legs li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px dashed var(--line); }
.legs li span:last-child { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hub-e.edge .pin { border-radius: 4px; }

/* 인쇄물용 지도 촬영 모드 */
body.shot .sbar, body.shot .spanel, body.shot .drawer, body.shot .maplibregl-ctrl-bottom-right { display: none !important; }
body.shot #map { inset: 0; }
body.shot .zone-e img, body.shot .zone-e.small img, body.shot .zone-e.tiny img { transform: scale(1.15); }
body.shot .zone-e .nm, body.shot .zone-e.small .nm, body.shot .zone-e.tiny .nm { font-size: 19px; margin-top: 2px; }
body.shot .hub-e .nm, body.shot .spot-e .nm { font-size: 20px; }

.fest-e { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.fest-e img { width: 46px !important; height: auto !important; filter: drop-shadow(0 2px 3px rgba(60,40,20,.35)); }
.fest-e .nm { font: 700 20px/1 var(--hand); color: var(--accent); background: rgba(255,250,240,.92); border: 2px solid var(--accent); border-radius: 10px; padding: 4px 8px 5px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.fest-e .nm small { display: block; font: 700 11px var(--font); color: var(--ink-2); margin-top: 2px; }
