/* 부스 안내 페이지 — 홈페이지(home.css)와 같은 밤바다·금색 톤. 휴대폰 세로 화면 우선 */
:root {
  --sea-deep: #061020;
  --sea: #0B1626;
  --ink: #EAF1FA;
  --ink-2: #A9BAD1;
  --line: rgba(240, 185, 75, 0.26);
  --card: linear-gradient(180deg, rgba(24, 49, 86, 0.78), rgba(13, 26, 48, 0.92));
  --gold-hi: #FFF1C2;
  --gold: #F0B94B;
  --gold-2: #C98F1E;
  --gold-ink: #2A1C04;
  --font: "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --font-title: "Black Han Sans", "Noto Sans KR", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  color: var(--ink); font-family: var(--font); line-height: 1.65; font-size: 17px;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere;
  background: linear-gradient(180deg, #0E1E3A 0%, var(--sea) 40%, var(--sea-deep) 100%) fixed, var(--sea);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2 { margin: 0; line-height: 1.25; }
p { margin: 0; }
main { width: min(680px, 100% - 32px); margin: 0 auto; padding-bottom: 8px; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  height: 52px; padding: 0 16px; background: rgba(6, 16, 32, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--font-title); font-size: 18px; text-decoration: none; }
.brand span { color: var(--gold); font-family: var(--font); font-weight: 800; font-size: 15px; margin-right: 6px; }
.top-link { font-size: 15px; text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold-hi); }

.hero { position: relative; margin: 16px 0 14px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(80% 70% at 50% 0%, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%), var(--card); }
.hero .scene { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-text { padding: 16px 18px 20px; }
.hero.island .hero-text { margin-top: -56px; position: relative;
  background: linear-gradient(180deg, transparent, rgba(8, 18, 36, 0.92) 56px); padding-top: 60px; }
.kicker { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--gold); letter-spacing: 0.04em; }
.code { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--c, var(--gold)); color: #fff; font-weight: 800; font-size: 13px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.small { margin-top: 8px; color: var(--ink-2); font-weight: 700; }
/* 금화로 바꿔 참여하는 부스(체험·푸드) 표시 */
.coin { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 8px 1px 5px; border-radius: 999px; vertical-align: 1px;
  font-size: 12px; font-weight: 800; font-style: normal; letter-spacing: 0; line-height: 1.5; color: #3b2a00; background: linear-gradient(180deg, #FFE38A, #E8B530); }
.coin::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #FFF4C4; box-shadow: inset 0 0 0 1.5px #B07D10; }
.kicker { flex-wrap: wrap; row-gap: 6px; }
.kicker .code, .kicker .coin { flex: none; white-space: nowrap; }
.kicker .coin { margin-left: 0; }
h1 { margin-top: 6px; font-family: var(--font-title); font-weight: 400; font-size: clamp(28px, 8vw, 40px); letter-spacing: 0.01em;
  background: linear-gradient(180deg, #FFF4CC 0%, var(--gold) 55%, #C98F1E 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.heart { margin-top: 10px; display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 16px; }
.heart img { width: 36px; height: 36px; object-fit: contain; }
.heart b { color: var(--ink); }

.card { margin: 0 0 14px; padding: 18px 18px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.card h2 { font-size: 19px; color: var(--gold-hi); margin-bottom: 10px; }
.card h2 small { font-size: 14px; color: var(--gold); font-weight: 700; margin-left: 6px; }
.card.story p { font-size: 18px; }
.card.ask { border-color: color-mix(in srgb, var(--gold) 55%, transparent);
  background: linear-gradient(180deg, rgba(240,185,75,0.14), rgba(240,185,75,0.05)), var(--card); }
.note { margin-top: 12px; font-size: 15px; color: var(--ink-2); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 8px 0 8px 42px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 7px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--gold-ink);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-2)); }
.facts { margin: 0; padding-left: 20px; }
.facts li { margin: 6px 0; }
.facts li::marker { color: var(--gold); }

.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chip { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; text-decoration: none; font-size: 14px; font-weight: 700;
  border: 1px solid rgba(255,255,255,0.1); background: color-mix(in srgb, var(--c) 16%, transparent); }
.chip img { width: 34px; height: 34px; object-fit: contain; }
.chip.on { outline: 2px solid var(--gold); }

.cat { display: flex; align-items: center; gap: 8px; }
.cat::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.list { margin: 0; padding: 0; list-style: none; }
.list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 11px 2px; text-decoration: none;
  border-top: 1px solid rgba(255,255,255,0.07); }
.list li:first-child a { border-top: 0; }
.list .code { background: rgba(255,255,255,0.12); }
.list i { font-style: normal; font-size: 14px; color: var(--ink-2); }

.foot { width: min(680px, 100% - 32px); margin: 8px auto 0; padding: 22px 0 40px; text-align: center; color: var(--ink-2); font-size: 15px;
  border-top: 1px solid var(--line); }
.foot b { color: var(--ink); }
.foot-links { margin: 14px 0 10px; display: flex; justify-content: center; gap: 10px; }
.foot-links a { text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold-hi); }
.foot-contact { font-size: 14px; }

/* ===== 휴대폰 최적화 v2 (2026-10-09) ===== */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 112px; }
a, button { -webkit-tap-highlight-color: transparent; }
.top { padding-top: env(safe-area-inset-top); height: calc(52px + env(safe-area-inset-top)); }
.top-link { min-height: 36px; display: inline-flex; align-items: center; }

/* 아래 고정 막대: 이전 · 전체 · 다음 */
body.has-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(6, 16, 32, 0.94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); }
.bar-btn { min-height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 14px; text-decoration: none;
  font-weight: 800; font-size: 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }
.bar-btn small { display: block; font-size: 11px; font-weight: 700; color: var(--gold); line-height: 1.1; }
.bar-btn .arw { font-size: 28px; line-height: 1; color: var(--gold); }
.bar-btn.end { justify-content: flex-end; text-align: right; }
.bar-btn.mid { flex-direction: column; justify-content: center; gap: 3px; padding: 0 18px; font-size: 13px; color: var(--gold-ink);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-2)); border: 0; }
.grid { width: 18px; height: 18px; background:
  linear-gradient(var(--gold-ink) 0 0) 0 0 / 7px 7px no-repeat, linear-gradient(var(--gold-ink) 0 0) 11px 0 / 7px 7px no-repeat,
  linear-gradient(var(--gold-ink) 0 0) 0 11px / 7px 7px no-repeat, linear-gradient(var(--gold-ink) 0 0) 11px 11px / 7px 7px no-repeat; border-radius: 2px; }

/* 섬 도장 */
.stamp-card { text-align: center; border-color: color-mix(in srgb, var(--c) 60%, var(--line)); }
.stamp-btn { width: 100%; min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  font: inherit; font-size: 17px; font-weight: 800; color: var(--ink); cursor: pointer;
  background: rgba(255,255,255,0.05); border: 2px dashed color-mix(in srgb, var(--c) 70%, #fff); }
.stamp-btn img { width: 40px; height: 40px; object-fit: contain; filter: grayscale(1) opacity(0.55); transition: filter .2s, transform .2s; }
.stamp-btn .on { display: none; }
.stamp-btn[aria-pressed="true"] { border-style: solid; background: color-mix(in srgb, var(--c) 28%, transparent); }
.stamp-btn[aria-pressed="true"] img { filter: none; transform: rotate(-8deg) scale(1.1); }
.stamp-btn[aria-pressed="true"] .on { display: inline; }
.stamp-btn[aria-pressed="true"] .off { display: none; }
.stamp-count { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.stamp-count b { color: var(--gold-hi); font-size: 18px; }

/* 섬 고르기 칩: 도장 찍은 섬 표시 */
.chip { position: relative; min-height: 64px; justify-content: center; }
.chip.visited::after { content: "✓"; position: absolute; top: 4px; right: 6px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 900; color: var(--gold-ink); background: var(--gold); }

.share-card { padding: 14px; }
.share { width: 100%; min-height: 52px; border-radius: 14px; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer;
  color: var(--gold-hi); background: transparent; border: 1px solid var(--line); }

/* ----- 전체 목록 ----- */
.intro .hero-text { padding-bottom: 8px; }
.board { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; padding: 6px 14px 16px; }
.slot { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,0.05);
  border: 1.5px dashed rgba(255,255,255,0.25); }
.slot img { width: 72%; height: 72%; object-fit: contain; filter: grayscale(1) opacity(0.4); }
.slot.visited { border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 30%, transparent); }
.slot.visited img { filter: none; }
.board-txt { grid-column: 1 / -1; margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.board-txt b { color: var(--gold-hi); font-size: 18px; }
.board-txt span { display: block; font-size: 13px; }
.all-stamped .board-txt span::before { content: "여덟 섬 도장을 모두 모았어요! "; color: var(--gold); font-weight: 800; }

.tabs { position: sticky; top: calc(52px + env(safe-area-inset-top)); z-index: 4; display: flex; gap: 6px; overflow-x: auto;
  margin: 0 -16px 10px; padding: 8px 16px; background: rgba(8, 19, 37, 0.94); backdrop-filter: blur(8px);
  scrollbar-width: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; min-height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 999px;
  text-decoration: none; font-size: 15px; font-weight: 700; color: var(--ink-2); border: 1px solid rgba(255,255,255,0.12); }
.tabs a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.tabs a.on { color: #fff; border-color: var(--c); background: color-mix(in srgb, var(--c) 25%, transparent); }

.sec { margin: 4px 0 22px; }
.sec h2.cat { font-size: 20px; margin: 0 2px 10px; flex-wrap: wrap; }
.sec h2.cat small { width: 100%; font-size: 13px; font-weight: 600; color: var(--ink-2); padding-left: 20px; }
.isles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.isle { display: block; overflow: hidden; border-radius: 16px; text-decoration: none; background: var(--card); border: 1px solid var(--line); }
.isle .pic { position: relative; display: block; }
.isle .pic img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.isle .done { display: none; position: absolute; right: 8px; top: 8px; padding: 2px 8px; border-radius: 999px; font-style: normal;
  font-size: 12px; font-weight: 800; color: var(--gold-ink); background: var(--gold); }
.isle.visited .done { display: block; }
.isle .txt { display: block; padding: 8px 10px 12px; }
.isle .code { background: var(--c); font-size: 12px; }
.isle b { margin-left: 6px; font-size: 16px; }
.isle em { display: block; margin-top: 3px; font-style: normal; font-size: 13.5px; color: var(--ink-2); line-height: 1.35; }

.sec .list { margin: 0; padding: 4px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.sec .list a { grid-template-columns: auto 1fr auto; min-height: 58px; }
.sec .list .code { background: color-mix(in srgb, var(--c) 70%, #000); }
.sec .list .t b { display: block; font-size: 16px; line-height: 1.3; }
.sec .list .t i { display: block; font-style: normal; font-size: 13px; color: var(--ink-2); }
.sec .list .chev { font-size: 24px; color: var(--gold); }

@media (min-width: 560px) { .isles { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
/* 제목: 두 줄이 되어도 얼룩지지 않게 단색 금색 */
h1 { background: none; -webkit-background-clip: initial; background-clip: initial; color: #F7CF73; text-shadow: 0 2px 0 rgba(0,0,0,0.35); }
.brand { min-height: 44px; display: inline-flex; align-items: center; }
.top-link { min-height: 40px; }

/* ===== 행사 배치도 (2026-10-10) ===== */
.mapcard { padding: 14px 12px 14px; }
.mapcard h2 { margin: 0 4px 10px; }
.mapcard h2 small { display: block; margin: 2px 0 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.map-wrap { overflow: auto; border-radius: 12px; -webkit-overflow-scrolling: touch; }
.map { position: relative; width: 100%; }
.map img { width: 100%; height: 100%; display: block; border-radius: 12px; }
.mapcard.zoomed .map { width: 240%; }
.spot { position: absolute; display: block; border-radius: 10px; }
.spot.round { border-radius: 50%; }
.spot:not(.plain):active { background: rgba(255, 211, 106, 0.35); }
.spot .ck { display: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 30%; min-width: 18px; max-width: 34px; aspect-ratio: 1; border-radius: 50%; font-style: normal; font-weight: 900;
  font-size: clamp(11px, 2.6vw, 20px); color: #fff; background: #2f9e57; box-shadow: 0 1px 4px rgba(0,0,0,0.5);
  align-items: center; justify-content: center; line-height: 1; }
/* 참가 완료: 흐리게 + ✓ */
.spot.visited { background: rgba(30, 36, 48, 0.55); -webkit-backdrop-filter: grayscale(1); backdrop-filter: grayscale(1); }
.spot.visited .ck { display: flex; }
/* 지금 보고 있는 부스 */
.spot.here { outline: 3px solid #ffd36a; outline-offset: 1px; box-shadow: 0 0 0 4px rgba(255, 211, 106, 0.35); animation: here 1.6s ease-in-out infinite; }
.spot .pin { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -4px); white-space: nowrap; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 900; color: var(--gold-ink); background: #ffd36a; box-shadow: 0 2px 6px rgba(0,0,0,0.4); }
@keyframes here { 50% { box-shadow: 0 0 0 9px rgba(255, 211, 106, 0); } }
.map-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.map-zoom { min-height: 44px; padding: 0 16px; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
  color: var(--gold-ink); background: linear-gradient(180deg, var(--gold-hi), var(--gold-2)); border: 0; }
.map-zoom .on { display: none; }
.mapcard.zoomed .map-zoom .on { display: inline; }
.mapcard.zoomed .map-zoom .off { display: none; }
.map-note { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.lg-done { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 900; color: #fff; background: #2f9e57; }
.done-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 22px; font-weight: 900;
  color: #fff; background: rgba(255,255,255,0.15); }
.stamp-btn[aria-pressed="true"] .done-ico { background: #2f9e57; }
/* 목록 줄: 참가 완료 */
.sec .list a.visited .t b::after { content: " ✓"; color: #4cc77a; }
.sec .list a.visited .code { filter: grayscale(0.6); opacity: 0.7; }
@media (prefers-reduced-motion: reduce) { .spot.here { animation: none; } }

/* ===== 언어 선택 줄 (2026-10-11) ===== */
.langbar { display: flex; gap: 6px; overflow-x: auto; width: min(680px, 100% - 32px); margin: 10px auto 0; scrollbar-width: none; }
.langbar::-webkit-scrollbar { display: none; }
.langbar button { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 11px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink-2); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); }
.langbar button[aria-pressed="true"] { color: var(--gold-ink); background: linear-gradient(180deg, var(--gold-hi), var(--gold-2)); border-color: transparent; }
.langbar .flag { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.25); }
:lang(ru) h1, :lang(vi) h1, :lang(zh-Hans) h1, :lang(ja) h1 { font-family: var(--font); font-weight: 800; letter-spacing: 0; }
/* 다른 언어에서 행사 이름이 길어도 위쪽 줄이 깨지지 않게 */
.top { gap: 10px; }
.brand { min-width: 0; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 44px; }
.brand span { white-space: nowrap; }
.top-link { flex: none; white-space: nowrap; }
html:not([lang="ko"]) .brand { font-family: var(--font); font-weight: 800; font-size: 15px; }
.heart { flex-wrap: wrap; row-gap: 2px; }

/* ===== 이 섬의 놀이 · 놀이 방법 (2026-10-16) ===== */
.games .lead { font-size: 15px; color: var(--ink-2); }
.game { margin-top: 14px; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); }
.game-pic { width: 100%; height: auto; aspect-ratio: 16 / 10; background: #FBEBCB; }
.game-body { padding: 12px 14px 14px; }
.game h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 20px; line-height: 1.3; color: var(--gold-hi); }
.game h3 .gno { flex: none; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 8px; display: grid; place-items: center;
  font-size: 14px; font-weight: 800; color: #fff; background: var(--c, var(--gold-2)); text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.game-what { margin-top: 4px; font-size: 16px; color: var(--ink-2); }
.game .steps { margin-top: 6px; }
.game .steps li { padding: 5px 0 5px 38px; font-size: 16px; }
.game .steps li::before { top: 4px; width: 27px; height: 27px; font-size: 14px; }
.game-win { margin-top: 10px; display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 16px;
  background: rgba(47,158,87,0.16); border: 1px solid rgba(76,199,122,0.45); }
.game-win b { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px 1px 6px; border-radius: 999px; font-size: 13.5px;
  font-weight: 800; color: #fff; background: #2f9e57; line-height: 1.6; margin-top: 1px; }
.game-win b::before { content: "✓"; font-weight: 900; }
