/* ==========================================================================
   Golden Bay — sub-page components & motion layer
   (cover chapters, sticky TOC, venue cards, tables, board, curtain)
   Motion reference: Shopify Editions screen recording — full-bleed artwork
   chapters with the giant title gliding over the image while scrolling.
   ========================================================================== */

/* ---------- Lenis smooth scroll ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Page transition curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  display: grid; place-items: center;
  /* Parked above the viewport; it only drops when leaving the page, so a slow
     or failed script can never leave the page covered. */
  transform: translateY(-100%);
  pointer-events: none;
}
/* Entering a page: content rises in instead of a cover lifting off */
main, .header { animation: page-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.header { animation-name: page-fade; }
@keyframes page-fade { from { opacity: 0; } to { opacity: 1; } }
.shot main, .shot .header { animation: none; }
.curtain .mark { font-family: var(--font-serif); font-style: italic; font-size: clamp(40px, 6vw, 72px); color: var(--gold); opacity: 0; transition: opacity 0.4s; }
.curtain.is-down { animation: none; transform: translateY(0); transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1); pointer-events: all; }
.curtain.is-down .mark { opacity: 1; }
@media (prefers-reduced-motion: reduce) { main, .header { animation: none; } }
.shot .curtain { display: none; }

/* ---------- Cover chapter: sticky artwork + gliding title ---------- */
.cover {
  --p: 0;                       /* 0 → 1 scroll progress, set by motion.js */
  --stage: min(100svh, 1000px);
  position: relative;
  height: calc(var(--stage) * 1.75);
  background: var(--ink);
  color: var(--bone);
}
.cover.cover-sm { height: calc(var(--stage) * 1.35); }
.cover-stage { position: sticky; top: 0; height: var(--stage); overflow: hidden; }
.cover-media { position: absolute; inset: 0; }
.cover-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(calc(1.18 - var(--p) * 0.18)) translateY(calc(var(--p) * -3%));
  will-change: transform;
}
.cover-stage::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0.45) 0%, rgb(0 0 0 / 0) 30%),
    linear-gradient(0deg, rgb(0 0 0 / calc(0.62 + var(--p) * 0.28)) 0%, rgb(0 0 0 / 0.12) 78%),
    linear-gradient(90deg, rgb(0 0 0 / 0.32) 0%, rgb(0 0 0 / 0) 62%);  /* text column stays legible on bright photos */
}
.cover-title, .cover-lead, .cover .crumbs { text-shadow: 0 1px 22px rgb(0 0 0 / 0.38); }
.cover-inner {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding-bottom: clamp(36px, 7vh, 80px);
  transform: translateY(calc((0.35 - var(--p)) * var(--stage) * 0.22));
}
.cover-title {
  margin: 0;
  font-weight: 600;
  font-size: clamp(64px, 13vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.cover-sm .cover-title { font-size: clamp(52px, 9.8vw, 140px); }
.cover-lead { margin-top: 18px; opacity: calc(0.25 + var(--p) * 2); max-width: 30ch; }
.cover .crumbs { display: flex; gap: 10px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; color: rgb(255 255 255 / 0.75); }
.cover .crumbs a:hover { color: var(--gold-light); }
.cover .crumbs a { padding-block: 12px; margin-block: -12px; } /* touch area */
.cover .crumbs > span::before { content: "/"; margin-right: 10px; opacity: 0.5; }
.cover-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cover-chips > span { border: 1px solid rgb(255 255 255 / 0.35); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgb(0 0 0 / 0.15); }
.cover-scroll { position: absolute; right: var(--gutter); bottom: 28px; z-index: 2; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; writing-mode: vertical-rl; opacity: calc(0.8 - var(--p)); }
@media (min-width: 1080px) {
  .cover-inner .container { padding-left: calc(min(100vw, var(--container)) * 0.235); }
}
.shot .cover { --p: 0.45; height: var(--stage); }
.shot .cover-stage { position: relative; }

/* ---------- Word-by-word reveal ([data-split]) ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.w > i { display: inline-block; font-style: inherit; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
[data-split].is-in .w > i, .shot .w > i { transform: none; }
html[data-lang="en"] .cover-lead .w > i, html[data-lang="en"] .serif-lead .w > i { font-style: italic; }

/* ---------- Sticky table of contents (left editorial column) ---------- */
.toc {
  position: fixed; z-index: 30;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.toc.is-visible { opacity: 1; visibility: visible; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; align-items: center; gap: 10px; transition: color 0.3s, opacity 0.3s; }
.toc .bar { width: 14px; height: 1px; background: currentColor; transition: width 0.5s var(--ease); }
.toc a.is-active .bar { width: 34px; }
@media (min-width: 1080px) {
  .toc {
    left: max(var(--gutter), calc((100vw - var(--container)) / 2 + 48px));
    top: 50%; transform: translateY(-50%);
    width: calc(min(100vw, var(--container)) * 0.235 - 96px);
    color: #fff; mix-blend-mode: difference;
  }
  .toc .toc-title { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.6; margin-bottom: 14px; }
  .toc a { font-size: 12.5px; padding: 5px 0; opacity: 0.55; }
  .toc a:hover, .toc a.is-active { opacity: 1; }
  .toc .progress { margin-top: 16px; height: 1px; background: rgb(255 255 255 / 0.25); position: relative; }
  .toc .progress i { position: absolute; inset: 0 auto 0 0; width: calc(var(--toc-p, 0) * 100%); background: #fff; }
}
@media (max-width: 1079px) {
  .toc {
    left: 0; right: 0; top: var(--header-h);
    background: rgb(0 0 0 / 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    color: var(--bone); border-top: 1px solid var(--ink-line);
  }
  .toc .toc-title, .toc .progress { display: none; }
  .toc ol { display: flex; gap: 6px; overflow-x: auto; padding: 8px var(--gutter); scrollbar-width: none; }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc a { white-space: nowrap; font-size: 13px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--ink-line); min-height: 36px; }
  .toc .bar { display: none; }
  .toc a.is-active { background: var(--bone); color: var(--ink); border-color: var(--bone); }
}
.shot .toc { display: none; }

/* ---------- Section anchor offset ---------- */
[data-toc] { scroll-margin-top: 90px; }

/* ---------- Lead paragraph & key facts ---------- */
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; max-width: 46ch; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--stone-line); border: 1px solid var(--stone-line); border-radius: var(--radius-card); overflow: hidden; }
.ink .facts { background: var(--ink-line); border-color: var(--ink-line); }
.facts > div { background: var(--stone); padding: 18px; display: grid; gap: 4px; }
.ink .facts > div { background: var(--ink); }
.facts b { font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.facts b sup { font-size: 0.42em; color: var(--gold-deep); vertical-align: top; }
.ink .facts b sup { color: var(--gold); }
.facts > div > span { font-size: 12.5px; opacity: 0.75; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Venue card (image gallery + info) ---------- */
.venues { display: grid; gap: clamp(48px, 6vw, 88px); }
.venue { display: grid; gap: 22px; align-items: start; }
@media (min-width: 900px) {
  .venue { grid-template-columns: 7fr 5fr; gap: 40px; }
  .venue:nth-child(even) .v-media { order: 2; }
}
.v-media { display: grid; gap: 8px; }
.v-main { position: relative; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4/3; background: #222; cursor: zoom-in; }
.v-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.v-main:hover img { transform: scale(1.04); }
.v-main .badge { position: absolute; left: 12px; top: 12px; z-index: 1; background: rgb(0 0 0 / 0.65); color: var(--bone); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 6px 12px; border-radius: 999px; font-size: 11.5px; letter-spacing: 0.06em; }
.v-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.v-thumbs button { padding: 0; border: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 4/3; background: #222; opacity: 0.65; transition: opacity 0.3s, transform 0.4s var(--ease); }
.v-thumbs button:hover, .v-thumbs button[aria-pressed="true"] { opacity: 1; transform: translateY(-3px); }
.v-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.v-info { display: grid; gap: 14px; align-content: start; }
.v-info .kicker { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.ink .v-info .kicker { color: var(--gold); }
.v-info h3 { margin: 0; font-size: clamp(26px, 2.8vw, 38px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.v-info h3 small { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; letter-spacing: 0; opacity: 0.6; }
.v-info p { margin: 0; font-size: 14.5px; line-height: 1.6; opacity: 0.85; }
.v-info dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 4px 0 0; font-size: 13.5px; border-top: 1px solid var(--stone-line); padding-top: 14px; }
.ink .v-info dl { border-color: var(--ink-line); }
.v-info dt { opacity: 0.72; }
.v-info dd { margin: 0; }
.v-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags > span { font-size: 12px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--stone-line); }
.ink .tags span { border-color: var(--ink-line); }

/* ---------- Image mosaic / gallery ---------- */
.mosaic { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.mosaic figure { margin: 0; position: relative; border-radius: var(--radius-card); overflow: hidden; background: #222; cursor: zoom-in; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform 1.2s var(--ease); }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption { position: absolute; left: 10px; bottom: 10px; font-size: 12px; background: rgb(0 0 0 / 0.6); color: #fff; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: repeat(6, 1fr); }
  .mosaic figure { grid-column: span 2; }
  .mosaic figure.wide { grid-column: span 4; }
  .mosaic figure.wide img { aspect-ratio: 16/10; height: 100%; }
  .mosaic figure.full { grid-column: span 6; }
  .mosaic figure.full img { aspect-ratio: 21/9; }
  .mosaic figure.half { grid-column: span 3; }
}

/* ---------- Data table → cards on mobile ---------- */
.dtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dtable th { text-align: left; font-weight: 600; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.72; padding: 0 12px 12px 0; border-bottom: 1px solid var(--stone-line); }
.dtable td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--stone-line); vertical-align: top; }
.ink .dtable th, .ink .dtable td { border-color: var(--ink-line); }
.dtable td:first-child { font-weight: 600; }
.dtable td small { display: block; font-weight: 400; opacity: 0.6; font-size: 12px; margin-top: 2px; }
.dtable tr { transition: background 0.3s; }
.dtable tbody tr:hover { background: rgb(201 165 92 / 0.08); }
.table-wrap { overflow-x: auto; }
@media (max-width: 767px) {
  .dtable thead { display: none; }
  .dtable, .dtable tbody, .dtable tr, .dtable td { display: block; width: 100%; }
  .dtable tr { padding: 14px 0; border-bottom: 1px solid var(--stone-line); }
  .ink .dtable tr { border-color: var(--ink-line); }
  .dtable td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 38% 1fr; gap: 10px; }
  .dtable td::before { content: attr(data-label); font-size: 11.5px; opacity: 0.55; font-weight: 400; }
  .dtable td:first-child { display: block; font-size: 16px; padding-bottom: 6px; }
  .dtable td:first-child::before { display: none; }
}

/* ---------- Filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chips button {
  min-height: 44px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--stone-line); background: transparent; font-size: 13.5px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s;
}
.ink .chips button { border-color: var(--ink-line); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.ink .chips button[aria-pressed="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.chips button .n { opacity: 0.72; margin-left: 4px; font-size: 12px; }
[data-cat].is-hidden { display: none !important; }

/* ---------- Community board ---------- */
.board { border-top: 1px solid var(--ink-line); }
.post {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  padding: 18px 4px; border-bottom: 1px solid var(--ink-line);
  transition: background 0.3s, padding 0.4s var(--ease);
}
.post:hover { background: rgb(255 255 255 / 0.04); padding-left: 12px; }
.post .b { font-size: 11.5px; color: var(--gold); letter-spacing: 0.04em; }
.post h3, .post h4 { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.4; }
.post h4 .cm { color: var(--gold); font-size: 13px; margin-left: 6px; }
.post .meta { display: flex; gap: 14px; font-size: 12px; opacity: 0.55; }
@media (min-width: 900px) {
  .post { grid-template-columns: 110px 1fr 120px 70px 70px; align-items: center; gap: 18px; }
  .post .meta { display: contents; }
  .post .meta span:nth-child(3) { text-align: right; }
}
.board-head { display: none; }
@media (min-width: 900px) {
  .board-head { display: grid; grid-template-columns: 110px 1fr 120px 70px 70px; gap: 18px; padding: 0 4px 10px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.5; }
}

/* ---------- Promo cards ---------- */
.promos { display: grid; gap: 14px; }
@media (min-width: 900px) { .promos { grid-template-columns: repeat(3, 1fr); } }
.promo {
  position: relative; overflow: hidden;
  border-radius: var(--radius-card);
  padding: 24px; min-height: 230px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  background: var(--ink-soft); border: 1px solid var(--ink-line); color: var(--bone);
  transition: transform 0.6s var(--ease), border-color 0.4s;
}
.promo :is(h3, h4).serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 24px; line-height: 1.25; }
html[data-lang="ko"] .promo :is(h3, h4).serif { font-style: normal; font-size: 19px; line-height: 1.5; }
.promo:hover { transform: translateY(-6px); border-color: #c9a55c88; }
.promo .when { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.promo h3, .promo h4 { margin: 0; font-size: 21px; letter-spacing: -0.02em; font-weight: 600; line-height: 1.25; }
.promo p { margin: 0; font-size: 13.5px; opacity: 0.75; }
.promo.gold { background: linear-gradient(150deg, #e6cf9a, #c9a55c 55%, #8c6d2c); color: var(--ink); border: 0; }
.promo.gold .when { color: var(--ink); opacity: 0.7; }

/* ---------- Steps ---------- */
.steps { counter-reset: s; display: grid; gap: 0; }
.steps li { list-style: none; counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--stone-line); }
.ink .steps li { border-color: var(--ink-line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-serif); font-style: italic; font-size: 28px; line-height: 1; color: var(--gold-deep); }
.ink .steps li::before { color: var(--gold); }
.steps b { display: block; font-size: 15px; margin-bottom: 3px; }
.steps b + span { font-size: 13.5px; opacity: 0.8; }
.steps { padding: 0; margin: 0; }

/* ---------- Phrasebook ---------- */
.phrases { display: grid; gap: 10px; }
@media (min-width: 700px) { .phrases { grid-template-columns: repeat(2, 1fr); } }
.phrase { background: var(--stone-soft); border-radius: var(--radius-card); padding: 16px 18px; display: grid; gap: 4px; transition: transform 0.4s var(--ease), background 0.3s; }
.phrase:hover { transform: translateY(-3px); background: #fff; }
.phrase .vi { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.phrase .pr { font-size: 13px; color: var(--gold-deep); }
.phrase .mean { font-size: 13px; opacity: 0.75; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--ink-line); padding: 18px 0; }
.stone .marquee { border-color: var(--stone-line); }
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 38s linear infinite; padding-left: 48px; }
.marquee-track span { font-size: clamp(22px, 3vw, 40px); font-weight: 600; letter-spacing: -0.03em; }
.marquee-track span.serif { font-weight: 400; color: var(--gold); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Next-page band ---------- */
.next-page { display: block; padding: clamp(80px, 12vw, 160px) 0; background: var(--stone); color: var(--ink); overflow: hidden; }
.next-page .label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; }
.next-page .t { display: block; font-size: clamp(64px, 12vw, 180px); font-weight: 600; letter-spacing: -0.045em; line-height: 0.9; transition: transform 0.8s var(--ease), color 0.4s; }
.next-page:hover .t { transform: translateX(24px); color: var(--gold-deep); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgb(0 0 0 / 0.92); display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 4px; transform: scale(0.96); transition: transform 0.6s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox p { color: var(--bone); font-size: 13px; margin: 12px 0 0; text-align: center; opacity: 0.75; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.3); background: transparent; color: #fff; font-size: 22px; }

/* ---------- Tilt cards (desktop pointer) ---------- */
.tilt { transform-style: preserve-3d; transition: transform 0.6s var(--ease); }

/* ---------- Note / disclaimer ---------- */
.note { font-size: 12.5px; opacity: 0.65; margin: 18px 0 0; max-width: 70ch; }
.exclude-note { border-left: 2px solid var(--gold); padding: 6px 0 6px 14px; font-size: 13px; opacity: 0.8; }

/* ---------- Header: current page ---------- */
.nav a[aria-current="page"] { opacity: 1; color: var(--gold-light); }
.mobile-menu a[aria-current="page"] { color: var(--gold); }

/* ---------- Spacing helpers ---------- */
.mt-s { margin-top: 16px; } .mt-m { margin-top: clamp(32px, 4vw, 56px); } .mt-l { margin-top: clamp(56px, 7vw, 96px); }
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* ==========================================================================
   v3 — hero slideshow, photo strip, hover motion, custom cursor, music
   ========================================================================== */

/* ---------- Hero landmark slideshow ---------- */
.hero-slides .hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slides .hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slides .hero-slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 50%; }
.hero-slides .hero-slide.is-active img { animation: kenburns 8s linear both; }
.hero-slides .hero-slide:nth-child(even).is-active img { animation-name: kenburns-alt; }
@keyframes kenburns { from { transform: scale(1.14) translate(-1.5%, 0); } to { transform: scale(1.02) translate(1%, -1%); } }
@keyframes kenburns-alt { from { transform: scale(1.02) translate(1%, 1%); } to { transform: scale(1.14) translate(-1%, -1.5%); } }
.hero-slides figcaption {
  /* the slide box overhangs the hero by 6% top & bottom (parallax room) — compensate */
  position: absolute; left: var(--gutter); top: calc(5.4% + var(--header-h) + 20px); z-index: 3;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #fff;
  opacity: 0; transform: translateY(10px); transition: opacity 0.8s 0.5s, transform 0.8s 0.5s var(--ease);
}
.hero-slides figcaption::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.hero-slides .is-active figcaption { opacity: 1; transform: none; }
@media (min-width: 1080px) { .hero-slides figcaption { left: max(var(--gutter), calc((100vw - var(--container)) / 2 + 48px)); } }
.hero-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 14px; z-index: 3; display: flex; gap: 6px; }
.hero-progress button { flex: 1; height: 18px; padding: 8px 0; border: 0; background: transparent; cursor: pointer; }
.hero-progress button i { display: block; height: 2px; background: rgb(255 255 255 / 0.3); position: relative; overflow: hidden; border-radius: 2px; }
.hero-progress button i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero-progress button.is-done i::after { transform: scaleX(1); }
.hero-progress button.is-active i::after { animation: progress var(--dur, 6.5s) linear both; }
@keyframes progress { to { transform: scaleX(1); } }
.hero-inner { padding-bottom: clamp(44px, 7vw, 72px); }
@media (prefers-reduced-motion: reduce) { .hero-slides .hero-slide.is-active img { animation: none; } }

/* ---------- Auto-scrolling photo strip ---------- */
.photo-strip { overflow: hidden; margin-top: clamp(56px, 7vw, 96px); padding: 18px 0; }
.photo-strip-track { display: flex; gap: 14px; width: max-content; animation: strip 70s linear infinite; }
.photo-strip:hover .photo-strip-track { animation-play-state: paused; }
.photo-strip figure { position: relative; margin: 0; width: clamp(220px, 24vw, 340px); aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; flex: none; transition: transform 0.6s var(--ease), box-shadow 0.6s; }
.photo-strip figure:nth-child(odd) { rotate: -1.2deg; }
.photo-strip figure:nth-child(even) { rotate: 1.2deg; translate: 0 10px; }
.photo-strip figure:hover { transform: scale(1.06); rotate: 0deg; z-index: 2; box-shadow: 0 24px 50px rgb(0 0 0 / 0.5); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; }
.photo-strip figcaption { position: absolute; left: 10px; bottom: 10px; font-size: 12px; color: #fff; background: rgb(0 0 0 / 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 999px; }
@keyframes strip { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .photo-strip-track { animation: none; } .photo-strip { overflow-x: auto; } }
.shot .photo-strip-track { animation: none; }

/* ---------- Room cards with real photos ---------- */
.room-card.has-photo::before { display: none; }
.room-card .rc-photo { position: absolute; left: 8px; right: 8px; top: 8px; height: 56%; width: calc(100% - 16px); object-fit: cover; border-radius: 3px; }
.room-card.has-photo::after { content: ""; position: absolute; left: 8px; right: 8px; top: 8px; height: 56%; border-radius: 3px; background: linear-gradient(180deg, rgb(0 0 0 / 0.35), rgb(0 0 0 / 0) 35%, rgb(0 0 0 / 0) 55%, rgb(0 0 0 / 0.55)); pointer-events: none; }
.room-card.has-photo .tag, .room-card.has-photo .size { color: #fff; z-index: 1; }
.room-card.has-photo .size { text-shadow: 0 2px 18px rgb(0 0 0 / 0.45); }

/* ---------- Hover: characters ripple on headings ---------- */
.wd { display: inline-block; white-space: nowrap; }
.w > i { white-space: nowrap; }
.w { padding-top: 0.22em; margin-top: -0.22em; }
[data-reveal="mask"] { padding-top: 14px; margin-top: -14px; }
.ch { display: inline-block; } /* no will-change: thousands of layers exhaust GPU memory */
.wave:hover .ch { animation: chwave 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: calc(var(--c) * 18ms); }
@keyframes chwave {
  0% { transform: none; }
  40% { transform: translateY(-0.14em) rotate(-3deg); color: var(--gold-light); }
  100% { transform: none; }
}
.stone .wave:hover .ch { animation-name: chwave-dark; }
@keyframes chwave-dark {
  0% { transform: none; }
  40% { transform: translateY(-0.14em) rotate(-3deg); color: var(--gold-deep); }
  100% { transform: none; }
}

/* ---------- Hover: images drift toward the pointer ---------- */
.pan img { transition: translate 0.7s var(--ease), scale 0.9s var(--ease), filter 0.6s; }
.pan:hover img { scale: 1.07; translate: calc(var(--mx, 0) * -14px) calc(var(--my, 0) * -14px); filter: saturate(1.12); }
.tile.shade:hover > img, .mosaic figure:hover img, .v-main:hover img { transform: none; }

/* ---------- Hover: rows, chips, tags, phrases ---------- */
.flist > div, .steps li, .post, .dtable tbody tr, .chapter-meta span { transition: transform 0.45s var(--ease), color 0.3s; }
.flist > div:hover, .steps li:hover { transform: translateX(8px); }
.flist > div:hover :is(h3, h5), .steps li:hover b { color: var(--gold-deep); }
.ink .flist > div:hover :is(h3, h5), .ink .steps li:hover b { color: var(--gold-light); }
.dtable tbody tr:hover { transform: translateX(6px); }
.tags > span, .games span, .cover-chips > span, .chips button { transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s; }
.tags > span:hover, .games span:hover, .cover-chips > span:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--gold); }
.chips button:hover { transform: translateY(-2px); }
.lead, .block-head p { transition: color 0.4s; }
.block-head p:hover { color: inherit; }
.logo:hover em { color: var(--gold-light); }

/* ---------- Custom cursor (fine pointers) ---------- */
.cursor-ring, .cursor-dot { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity 0.3s; }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1.5px solid rgb(201 165 92 / 0.85);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink); text-transform: uppercase;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.35s, border-color 0.35s, opacity 0.3s;
}
.cursor-ring span { opacity: 0; transition: opacity 0.2s; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold); }
.has-cursor .cursor-ring, .has-cursor .cursor-dot { opacity: 1; }
.cursor-ring.is-link { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgb(201 165 92 / 0.18); }
.cursor-ring.is-view { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: var(--gold); border-color: var(--gold); }
.cursor-ring.is-view span { opacity: 1; }
.cursor-ring.is-down { scale: 0.85; }
@media (hover: none), (pointer: coarse) { .cursor-ring, .cursor-dot { display: none; } }
.shot .cursor-ring, .shot .cursor-dot { display: none; }

/* ---------- Ambient music toggle ---------- */
.fab .f-music { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: var(--gold); display: grid; place-items: center; box-shadow: 0 10px 30px rgb(0 0 0 / 0.35); border: 1px solid #c9a55c66; cursor: pointer; transition: transform 0.3s var(--ease); }
.fab .f-music:hover { transform: scale(1.06); }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.eq i { display: block; width: 3px; height: 4px; background: currentColor; border-radius: 2px; transition: height 0.3s; }
.f-music[aria-pressed="true"] .eq i { animation: eq 1.1s ease-in-out infinite; }
.f-music[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -0.4s; }
.f-music[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -0.7s; }
.f-music[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -0.2s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 18px; } }
.music-toast {
  position: fixed; right: 72px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 46;
  background: rgb(0 0 0 / 0.82); color: var(--bone); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid #c9a55c55; border-radius: 999px; padding: 10px 16px; font-size: 12.5px;
  opacity: 0; transform: translateX(10px); transition: opacity 0.5s, transform 0.5s var(--ease); pointer-events: none;
}
.music-toast.is-on { opacity: 1; transform: none; }

/* ---------- v4: top-of-page text raised by 25% of the screen ---------- */
.hero-inner { bottom: 25%; }
.cover-inner { padding-bottom: calc(clamp(36px, 7vh, 80px) + var(--stage) * 0.25); }
/* the tagline starts readable instead of faint, then sharpens while scrolling */
.cover-lead { opacity: calc(0.75 + var(--p) * 0.5); }
.cover-lead, .hero-sub, .cover .crumbs, .hero-slides figcaption { text-shadow: 0 1px 2px rgb(0 0 0 / 0.55), 0 4px 24px rgb(0 0 0 / 0.45); }

/* ---------- Info / legal pages ---------- */
.prose { max-width: 72ch; font-size: 15px; line-height: 1.75; }
.prose > * + * { margin-top: 1em; }
.prose h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin: 2em 0 0.4em; }
.prose h3:first-child { margin-top: 0; }
.prose p, .prose li { margin: 0; }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 0.45em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--gold-deep); }
.ink .prose a:hover { color: var(--gold); }
.prose strong { font-weight: 600; }
.prose .meta-line { font-size: 13px; opacity: 0.65; }
.prose table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--stone-line); }
.ink .prose th, .ink .prose td { border-color: var(--ink-line); }
.prose th { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; font-weight: 600; }
.prose .table-wrap { overflow-x: auto; }
mark.todo { background: rgb(201 165 92 / 0.25); color: inherit; padding: 1px 6px; border-radius: 4px; border: 1px dashed var(--gold); font-size: 0.92em; }
.legal-links a { text-decoration: underline; text-underline-offset: 2px; }
.map-static { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 16/9; background: #cfcdc3; }
.map-static iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 767px) { .map-static { aspect-ratio: 4/5; } }

/* ---------- Forms (quote / review) ---------- */
.gb-form { display: grid; gap: 18px; max-width: 880px; background: var(--paper); color: var(--ink); border-radius: var(--radius-card); padding: clamp(20px, 3vw, 36px); box-shadow: 0 30px 60px rgb(0 0 0 / 0.12); }
.f-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .f-grid { grid-template-columns: 1fr 1fr; } }
.f-field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.f-field > span { color: #3d3b36; }
.f-wide { grid-column: 1 / -1; }
.gb-form input:not([type="checkbox"]):not([type="radio"]), .gb-form select, .gb-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #cfccc1; border-radius: 6px;
  background: #fff; color: var(--ink); font: inherit; font-size: 16px; /* 16px stops iOS zoom */
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gb-form textarea { resize: vertical; min-height: 110px; }
.gb-form input:focus, .gb-form select:focus, .gb-form textarea:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgb(201 165 92 / 0.25); }
.gb-form.was-validated :invalid { border-color: #b3261e; }
.f-needs { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.f-needs legend { font-size: 13px; font-weight: 500; margin-bottom: 8px; color: #3d3b36; }
.f-check { position: relative; }
.f-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.f-check > span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #cfccc1; background: #fff; font-size: 13.5px; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.f-check input:checked + span { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.f-check input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.f-consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 12.5px; line-height: 1.55; color: #3d3b36; }
.f-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold-deep); }
.f-consent a { text-decoration: underline; }
.f-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.f-submit { min-height: 50px; padding: 0 28px; font-size: 15px; border: 0; }
.f-submit:disabled { opacity: 0.6; cursor: wait; }
.f-note { font-size: 12.5px; color: #5c5a54; }
.f-status { font-size: 14px; min-height: 1.2em; }
.f-status.is-ok { color: #1e6b3a; font-weight: 600; }
.f-status.is-err { color: #b3261e; }
.f-hp { position: absolute; left: -9999px; }
.f-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.f-stars input { position: absolute; opacity: 0; }
.f-stars label { font-size: 30px; line-height: 1; color: #cfccc1; cursor: pointer; padding: 4px; transition: color 0.15s, transform 0.15s; }
.f-stars label:hover, .f-stars label:hover ~ label, .f-stars input:checked ~ label { color: var(--gold); }
.f-stars label:hover { transform: scale(1.15); }
.f-stars input:focus-visible + label { outline: 2px solid var(--gold); border-radius: 4px; }

/* ---------- Tour cards ---------- */
.timeline { list-style: none; margin: 4px 0 0; padding: 0; border-left: 1px solid var(--stone-line); }
.ink .timeline { border-color: var(--ink-line); }
.timeline li { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 0 0 14px 18px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.timeline time { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--gold-deep); }
.timeline b { display: block; font-size: 14.5px; font-weight: 600; }
.timeline div > span { display: block; font-size: 13px; opacity: 0.75; margin-top: 2px; }
@media (max-width: 480px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }
.price-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-card); background: var(--ink); color: var(--bone); }
.price-box > div > span { display: block; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; }
.price-box b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--gold-light); }
.ref { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; opacity: 0.75; }
.ref li::before { content: "참고 · "; color: var(--gold-deep); font-weight: 600; }
html[data-lang="en"] .ref li::before { content: "Ref · "; }

/* ---------- Reviews ---------- */
.reviews-wall { columns: 1; column-gap: 14px; }
@media (min-width: 700px) { .reviews-wall { columns: 2; } }
@media (min-width: 1180px) { .reviews-wall { columns: 3; } }
.review { break-inside: avoid; margin: 0 0 14px; padding: 22px; border-radius: var(--radius-card); background: var(--ink-soft); border: 1px solid var(--ink-line); color: var(--bone); display: grid; gap: 14px; }
.review blockquote { margin: 0; font-family: var(--font-serif); font-size: 21px; line-height: 1.35; }
html[data-lang="en"] .review blockquote { font-style: italic; }
html[data-lang="ko"] .review blockquote { font-size: 17px; line-height: 1.6; }
.review blockquote::before { content: "“"; color: var(--gold); }
.review blockquote::after { content: "”"; color: var(--gold); }
.review .tr { font-family: var(--font-sans); font-style: normal; font-size: 11px; opacity: 0.55; }
.review figcaption { display: grid; gap: 2px; font-size: 12.5px; }
.review figcaption b { font-size: 14px; }
.review figcaption > span { opacity: 0.6; }
.review .r-src a { text-decoration: underline; }
.r-stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; }

/* ---------- Members (Supabase): header link, notice toast, news, auth, account ---------- */
/* Login pill — sits where the old “객실 예약” button was. Icon 14px (−30% vs 20px). */
.header .acct { display: inline-flex; gap: 7px; }
.acct svg { width: 14px; height: 14px; flex: none; }
.is-member .header .acct { background: transparent; color: var(--gold); border-color: var(--gold); }
.is-member .header .acct:hover { background: var(--gold); color: var(--ink); }
@media (max-width: 479px) { .header .acct { display: none; } } /* phones: the login pill is in the menu, where 객실 예약 used to be */
.mobile-menu .m-acct { display: inline-flex; font-size: 16px; letter-spacing: 0; line-height: 1; }
.is-member .mobile-menu .m-acct { background: transparent; color: var(--gold); border-color: var(--gold); }

.notice-toast { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: min(420px, calc(100vw - 96px)); display: flex; align-items: flex-start; gap: 6px;
  padding: 14px 10px 14px 18px; border-radius: var(--radius-card); background: var(--paper); color: var(--ink); box-shadow: 0 20px 50px rgb(0 0 0 / 0.35);
  font-size: 14px; line-height: 1.45; border-left: 3px solid var(--gold); transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform 0.7s var(--ease), opacity 0.7s var(--ease); }
.notice-toast.is-on { transform: none; opacity: 1; pointer-events: auto; }
.notice-toast p, .notice-toast a { margin: 0; flex: 1; }
.notice-toast a:hover { text-decoration: underline; }
.notice-toast button { flex: none; width: 44px; height: 44px; margin: -12px -6px -12px 0; border: 0; background: none; font-size: 22px; line-height: 1; opacity: 0.6; }
.notice-toast button:hover { opacity: 1; }

@keyframes live-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.live-in { animation: live-in 0.9s var(--ease) both; }
.live-in:nth-child(2) { animation-delay: 0.06s; } .live-in:nth-child(3) { animation-delay: 0.12s; } .live-in:nth-child(4) { animation-delay: 0.18s; }
.live-in:nth-child(5) { animation-delay: 0.24s; } .live-in:nth-child(6) { animation-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) { .live-in, [data-pane] { animation: none; } }

.pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; background: rgb(0 0 0 / 0.08); white-space: nowrap; }
.ink .pill { background: rgb(255 255 255 / 0.1); }
.pill-new, .pill-pending { background: rgb(201 165 92 / 0.22); color: var(--gold-deep); }
.ink .pill-new, .ink .pill-pending { color: var(--gold-light); }
.pill-contacted { background: rgb(66 133 244 / 0.16); }
.pill-booked, .pill-approved { background: rgb(3 199 90 / 0.18); }
.pill-closed, .pill-rejected { opacity: 0.65; }
.pill-member { background: var(--ink); color: var(--gold-light); }

/* News */
.news-filter { margin-bottom: 28px; }
.news-list { display: grid; gap: 28px 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .news-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1180px) { .news-list { grid-template-columns: 1fr 1fr 1fr; } }
.news-card { display: grid; gap: 8px; align-content: start; }
.news-card.is-hidden { display: none; }
.nc-media { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-img); overflow: hidden; background: var(--ink); display: grid; place-items: center; }
.nc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.news-card:hover .nc-media img { transform: scale(1.04); }
.nc-mark { font-family: var(--font-serif); font-style: italic; font-size: 30px; color: var(--gold); }
.nc-media .badge { position: absolute; left: 10px; top: 10px; padding: 5px 10px; border-radius: 999px; background: rgb(0 0 0 / 0.7); color: var(--gold-light); font-size: 11.5px; }
.news-card .kicker, .news-article .kicker, .auth-intro .kicker { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; margin-top: 6px; }
.ink .auth-intro .kicker { color: var(--gold); }
.news-card h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.news-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted-light); }
.news-empty { font-size: 15px; color: var(--muted-light); }
.news-article { max-width: 760px; display: grid; gap: 22px; }
.news-article[hidden] { display: none; }
.news-article .back { justify-self: start; }
.news-article header { display: grid; gap: 10px; }
.article-title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(32px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.01em; }
html[data-lang="en"] .article-title { font-style: italic; }
.article-cover { margin: 0; border-radius: var(--radius-img); overflow: hidden; }
.article-body { font-size: 16px; }
.article-body img { border-radius: var(--radius-img); }
.article-body figure { margin: 0; } .article-body figcaption { font-size: 13px; opacity: 0.7; margin-top: 6px; }
.article-body blockquote, .adm-preview blockquote { margin: 0; padding-left: 16px; border-left: 2px solid var(--gold); font-family: var(--font-serif); font-size: 1.2em; }
.article-body hr { border: 0; border-top: 1px solid var(--stone-line); }
.locked { max-width: 560px; display: grid; gap: 14px; padding: 28px; border-radius: var(--radius-card); background: var(--paper); }
.locked h2 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 30px; }
.locked p { margin: 0; } .locked .btn { justify-self: start; }

/* Auth + account */
.auth-block { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 110px)); }
.auth-wrap { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .auth-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 64px; } }
.auth-intro { display: grid; gap: 18px; align-content: start; }
.auth-title { margin: 0; overflow-wrap: anywhere; }
.auth-intro .serif-lead { margin: 0; }
.auth-intro .muted { margin: 0; max-width: 46ch; font-size: 15px; line-height: 1.7; }
.auth-intro .v-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.auth-card { background: var(--paper); color: var(--ink); border-radius: var(--radius-card); padding: clamp(20px, 3vw, 34px); box-shadow: 0 30px 70px rgb(0 0 0 / 0.35); display: grid; gap: 18px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--stone); }
.auth-tabs button { min-height: 44px; border: 0; border-radius: 999px; background: none; font-size: 14.5px; font-weight: 600; opacity: 0.6; }
.auth-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bone); opacity: 1; }
[data-pane] { display: grid; gap: 16px; animation: live-in 0.6s var(--ease) both; }
[data-pane][hidden] { display: none; }
.gb-form.flat { padding: 0; background: none; box-shadow: none; max-width: none; }
.auth-switch { margin: 0; font-size: 14px; text-align: center; }
.auth-switch a, .gb-form .tlink { text-decoration: underline; text-underline-offset: 3px; }
.social { display: grid; gap: 10px; }
.social[hidden], .soc[hidden] { display: none; }
.soc { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: 999px; border: 1px solid #cfccc1; background: #fff; font-size: 14.5px; font-weight: 600; }
.soc svg { width: 20px; height: 20px; }
.soc-kakao { background: #fee500; border-color: #fee500; color: #191600; }
.soc-naver { background: #03c75a; border-color: #03c75a; color: #fff; }
.soc-naver svg { width: 16px; height: 16px; }
.consent-gate { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgb(0 0 0 / 0.72); }
.consent-gate[hidden] { display: none; }
.consent-gate .gb-form { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; animation: live-in 0.6s var(--ease) both; }
.consent-gate h2 { margin: 0; font-size: 26px; }
.consent-gate p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.or { display: flex; align-items: center; gap: 12px; margin: 4px 0 0; font-size: 12.5px; color: #6b685f; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: #d6d3c8; }
.member-benefits { margin-bottom: 36px; padding: 22px 24px; border-radius: var(--radius-card); background: var(--paper); border-left: 3px solid var(--gold); }
.member-benefits[hidden] { display: none; }
.form-title { margin: 0 0 4px; font-size: 26px; }
.form-title-sm { margin: 0; font-size: 17px; font-weight: 600; }
.split-forms { display: grid; gap: 18px; }
@media (min-width: 900px) { .split-forms { grid-template-columns: 1.4fr 1fr; } }
.danger-zone { align-content: start; }
.danger-zone .muted { margin: 0; font-size: 14px; color: #5c5a54; }
.gb-form .btn-ghost { color: var(--ink); }
.my-reviews { display: grid; gap: 12px; max-width: 760px; }
.my-review { padding: 16px 18px; border-radius: var(--radius-card); background: var(--ink-soft); border: 1px solid var(--ink-line); display: grid; gap: 8px; }
.my-review p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.my-review small { opacity: 0.6; }

/* Login hero photo + polaroids */
.auth-block.has-bg { position: relative; overflow: hidden; isolation: isolate; }
.auth-bg { position: absolute; inset: 0; z-index: -1; }
.auth-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; opacity: 0.6; animation: auth-kb 28s var(--ease) both alternate infinite; }
.auth-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 0.92) 0%, rgb(0 0 0 / 0.72) 45%, rgb(0 0 0 / 0.35) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 30%); }
@media (max-width: 999px) { .auth-bg::after { background: linear-gradient(180deg, rgb(0 0 0 / 0.55) 0%, rgb(0 0 0 / 0.85) 55%, var(--ink) 100%); } }
@keyframes auth-kb { from { transform: scale(1.08); } to { transform: scale(1) translateX(-1.5%); } }
.auth-lede { margin: 0; max-width: 46ch; font-size: 15.5px; line-height: 1.7; color: rgb(245 243 238 / 0.82); }
.auth-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.auth-perks li { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgb(201 165 92 / 0.45); background: rgb(0 0 0 / 0.35); font-size: 13.5px; color: var(--bone); }
.auth-perks b { font-weight: 500; }
.pt-amt { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.stone .pt-amt, .gb-form .pt-amt, .pt-card .pt-amt { color: var(--gold-deep); }
.pt-amt:empty { display: none; }
.auth-polaroids { display: flex; gap: 14px; margin-top: 10px; padding: 10px 0 6px; }
.auth-polaroids figure { margin: 0; flex: 0 1 180px; min-width: 0; background: var(--paper); color: var(--ink); padding: 8px 8px 10px; border-radius: 4px; box-shadow: 0 18px 40px rgb(0 0 0 / 0.5); transition: transform 0.8s var(--ease); }
/* individual rotate/translate so the reveal animation's transform doesn't cancel the tilt */
.auth-polaroids figure { transition: rotate 0.8s var(--ease), translate 0.8s var(--ease), scale 0.8s var(--ease), opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.auth-polaroids figure:nth-child(1) { rotate: -4deg; }
.auth-polaroids figure:nth-child(2) { rotate: 2deg; translate: 0 10px; }
.auth-polaroids figure:nth-child(3) { rotate: -1.5deg; }
.auth-polaroids figure:hover { rotate: 0deg; translate: 0 -6px; scale: 1.03; }
.auth-polaroids img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: 2px; }
.auth-polaroids figcaption { margin-top: 8px; font-family: var(--font-serif); font-size: 14px; line-height: 1.2; text-align: center; }
html[data-lang="en"] .auth-polaroids figcaption { font-style: italic; font-size: 15px; }
@media (max-width: 480px) { .auth-polaroids { gap: 8px; } .auth-polaroids figure { padding: 5px 5px 7px; } .auth-polaroids figcaption { font-size: 11.5px; } }
@media (prefers-reduced-motion: reduce) { .auth-bg img { animation: none; } }

/* Points (account) */
.pt-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .pt-grid { grid-template-columns: 1fr 1.2fr 1.2fr; } }
.pt-card { background: var(--paper); color: var(--ink); border-radius: var(--radius-card); padding: 22px; display: grid; gap: 12px; align-content: start; }
.pt-card .kicker { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.pt-card .muted { margin: 0; font-size: 13.5px; color: var(--muted-light); }
.pt-balance { background: var(--ink); color: var(--bone); }
.pt-balance .kicker { color: var(--gold); }
.pt-balance .muted { color: var(--muted-dark); }
.pt-num { margin: 0; display: flex; align-items: baseline; gap: 6px; line-height: 1; }
.pt-num b { font-size: clamp(48px, 7vw, 76px); font-weight: 600; letter-spacing: -0.04em; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.pt-num span { font-size: 20px; color: var(--gold); }
.pt-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.pt-week span { display: grid; justify-items: center; gap: 4px; }
.pt-week i { width: 100%; max-width: 34px; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed #bdb9ad; display: block; }
.pt-week .on i { border: 0; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 55% no-repeat; }
.pt-week .today i { box-shadow: 0 0 0 3px rgb(201 165 92 / 0.3); }
.pt-week small { font-size: 11px; color: var(--muted-light); font-variant-numeric: tabular-nums; }
.pt-streak { margin: 0; font-size: 14px; font-weight: 500; }
.pt-checkin .btn { justify-self: start; }
.pt-checkin .btn:disabled { background: var(--stone); color: var(--ink); cursor: default; transform: none; }
.pt-ways ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pt-ways li { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; font-size: 14.5px; }
.pt-ways li > span:last-child { grid-column: 1 / -1; font-size: 13px; color: var(--muted-light); line-height: 1.5; }
.pt-ways .tlink { justify-self: start; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.pt-log { margin-top: 28px; display: grid; gap: 12px; max-width: 760px; }
.pt-list { list-style: none; margin: 0; padding: 0; }
.pt-list li { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; min-height: 48px; border-bottom: 1px solid var(--stone-line); font-size: 14.5px; }
.pt-list li span { font-size: 13px; color: var(--muted-light); font-variant-numeric: tabular-nums; }
.pt-list b { font-weight: 500; }
.pt-list em { font-style: normal; font-weight: 600; color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.pt-list em.neg { color: #b3261e; }
.pt-note { margin: 0 0 18px; max-width: 880px; padding: 14px 18px; border-radius: var(--radius-card); background: var(--paper); color: var(--ink); border-left: 3px solid var(--gold); font-size: 14.5px; line-height: 1.6; }
.pt-note a { text-decoration: underline; text-underline-offset: 3px; }
.consent-gate .tlink { border: 0; background: none; padding: 0; min-height: 44px; font-size: 13.5px; cursor: pointer; color: inherit; }

/* ---------- places directory (places.html + "More places" blocks) ---------- */
.pc-facts { font-size: 13px !important; color: var(--gold-deep) !important; font-weight: 500; }
.ink .news-card p { color: rgb(245 243 238 / 0.72); }
.ink .pc-facts { color: var(--gold-light) !important; }
.article-src { margin: 0; font-size: 13.5px; opacity: 0.8; }
.article-src a { text-decoration: underline; text-underline-offset: 3px; }
.place-detail { max-width: 980px; }
.pd-tags { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pd-tags span { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: rgb(0 0 0 / 0.07); }
.pd-gallery { display: grid; gap: 8px; }
.pd-gallery figure { margin: 0; border-radius: var(--radius-img); overflow: hidden; background: var(--ink); aspect-ratio: 16 / 10; }
.pd-gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) {
  .pd-gallery.is-multi { grid-template-columns: 2fr 1fr; grid-auto-rows: minmax(0, 1fr); }
  .pd-gallery.is-multi figure:first-child { grid-row: span 2; aspect-ratio: auto; }
  .pd-gallery.is-multi figure:nth-child(n+4) { display: none; }
}
@media (max-width: 759px) {
  .pd-gallery.is-multi { grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; }
  .pd-gallery.is-multi figure { scroll-snap-align: start; }
}
.pd-body { display: grid; gap: 28px; }
@media (min-width: 900px) { .pd-body { grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); align-items: start; } }
.pd-body .prose { font-size: 16px; }
.pd-facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; padding: 20px; border-radius: var(--radius-card); background: var(--paper); font-size: 14.5px; }
.pd-facts:empty { display: none; }
.pd-facts dt { color: var(--muted-light); font-size: 13px; }
.pd-facts dd { margin: 0; overflow-wrap: anywhere; }
.pd-facts a { text-decoration: underline; text-underline-offset: 3px; }
.pd-map { display: grid; gap: 8px; }
.pd-map iframe { width: 100%; aspect-ratio: 16 / 9; min-height: 260px; border: 0; border-radius: var(--radius-img); background: var(--stone-soft); }
.pd-map .tlink { justify-self: start; }
.pd-note { margin: 0; font-size: 13px; opacity: 0.7; }
.places-more .place-list { margin-top: 8px; }

/* show-password toggle (account.js) + resend link */
.f-field.has-toggle { position: relative; }
.f-field.has-toggle input { padding-right: 72px !important; }
.pw-toggle { position: absolute; right: 4px; bottom: 4px; min-height: 40px; min-width: 56px; padding: 0 10px; border: 0; border-radius: 4px; background: none; color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 600; opacity: 0.65; cursor: pointer; }
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { opacity: 1; }
.gb-form .resend { border: 0; background: none; padding: 0; font: inherit; font-size: 13.5px; cursor: pointer; color: inherit; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.news-list[hidden], .news-filter[hidden] { display: none; }

/* ---------- members' lounge (lounge.html) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lounge-hero { position: relative; overflow: hidden; padding-top: clamp(120px, 14vw, 200px); }
.lounge-hero-bg { position: absolute; inset: 0; }
.lounge-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; animation: auth-kb 28s ease-out both; }
.lounge-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0.35), var(--ink) 92%); }
.lounge-hero .container { position: relative; display: grid; gap: 18px; }
.lounge-hero .kicker { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.lounge-title { margin: 0; }
.lounge-hero .serif-lead { margin: 0 0 12px; max-width: 24ch; }
.lounge-gate { display: grid; gap: 22px; max-width: 760px; }
.lounge-gate[hidden] { display: none; }
.lg-lede { margin: 0; font-size: 16px; line-height: 1.7; opacity: 0.85; max-width: 54ch; }
.lounge-teaser { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); filter: blur(1.5px); opacity: 0.7; pointer-events: none; mask-image: linear-gradient(180deg, #000 40%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent); }
.lt-card { background: var(--ink-soft); border: 1px solid var(--ink-line); border-radius: var(--radius-card); padding: 16px; display: grid; gap: 8px; }
.lt-card .kicker { font-size: 11px; }
.lt-card b { font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.lt-card i { display: block; height: 8px; border-radius: 4px; background: rgb(255 255 255 / 0.12); }
.lt-card i.short { width: 60%; }

/* composer */
.lounge-compose { max-width: 760px; display: grid; gap: 10px; padding: 18px; }
.lounge-compose[hidden] { display: none; }
.lc-head { display: flex; align-items: center; gap: 12px; }
.lc-head > div { flex: 1; display: grid; min-width: 0; }
.lc-head b { font-size: 15px; }
.lc-head small { font-size: 12.5px; color: var(--muted-light); }
.lc-head select { width: auto !important; min-height: 40px !important; padding: 6px 12px !important; font-size: 14px !important; }
.lounge-compose textarea { min-height: 56px !important; transition: min-height 0.4s var(--ease); }
.lounge-compose.is-open textarea { min-height: 140px !important; }
.lounge-compose input[name="title"] { display: none; }
.lounge-compose.is-open input[name="title"] { display: block; }
.lc-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.lc-photos:empty { display: none; }
.lc-photos figure { position: relative; margin: 0; width: 84px; height: 84px; border-radius: 6px; overflow: hidden; background: var(--stone); }
.lc-photos img { width: 100%; height: 100%; object-fit: cover; }
.lc-photos button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgb(0 0 0 / 0.7); color: #fff; font-size: 16px; line-height: 1; }
.lc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lc-actions .btn-gold { margin-left: auto; }
.lc-pick { cursor: pointer; gap: 8px; color: var(--ink) !important; }
.lc-pick svg { width: 18px; height: 18px; }
.lc-hint { font-size: 12.5px; color: var(--muted-light); }
.lc-av { width: 40px; height: 40px; flex: none; border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center; background: var(--ink); color: var(--gold-light); font-weight: 600; font-size: 16px; }
.lc-av img { width: 100%; height: 100%; object-fit: cover; }
.lc-av.lg { width: 72px; height: 72px; font-size: 28px; }

/* layout */
.lounge-main[hidden] { display: none; }
.lounge-main { padding-top: clamp(48px, 6vw, 80px); }
.lounge-grid { display: grid; gap: 28px; }
@media (min-width: 1080px) {
  .lounge-grid { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
  .lounge-side { position: sticky; top: 96px; }
}
.lounge-col { display: grid; gap: 16px; min-width: 0; max-width: 760px; }
.lounge-tools { display: grid; gap: 10px; }
.lounge-tools[hidden] { display: none; }
.lounge-boards { margin: 0; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.lounge-boards::-webkit-scrollbar { display: none; }
.lounge-boards button { flex: none; scroll-snap-align: start; }
.lounge-tools-r { display: flex; gap: 8px; }
.lounge-search, .lounge-tools-r select { min-height: 44px; border: 1px solid #cfccc1; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; padding: 0 16px; }
.lounge-search { flex: 1; min-width: 0; }
.lounge-back { justify-self: start; }
.lounge-back[hidden] { display: none; }
.lounge-feed { display: grid; gap: 14px; }
.lounge-empty { padding: 40px 0; text-align: center; color: var(--muted-light); }
.lounge-more { display: flex; justify-content: center; }
.lounge-more .btn[hidden] { display: none; }

/* post card */
.lp { position: relative; background: #fff; border-radius: var(--radius-card); border: 1px solid var(--stone-line); padding: 18px 18px 6px; display: grid; gap: 12px; color: var(--ink); }
.lp.is-pinned { border-color: rgb(201 165 92 / 0.6); box-shadow: 0 0 0 1px rgb(201 165 92 / 0.35); }
.lp.is-hidden { opacity: 0.65; }
.lp-h { display: flex; align-items: center; gap: 12px; }
.lp-who { flex: 1; min-width: 0; display: grid; }
.lp-who b { font-size: 15px; }
.lp-name { display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; }
.lp-name .lp-badge { margin-left: 0; }
.lc-av.is-team { background: var(--gold); color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.lp-who small { font-size: 12.5px; color: var(--muted-light); }
.lp-board { color: var(--gold-deep); font-weight: 600; }
.lp-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--ink); color: var(--gold-light); font-size: 10.5px; font-weight: 700; vertical-align: 2px; }
.lp-pin { font-size: 15px; }
.lp-menu-wrap { position: relative; }
.lp-more { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; font-size: 20px; line-height: 1; color: var(--ink); }
.lp-more:hover { background: var(--stone-soft); }
.lp-menu { position: absolute; right: 0; top: 42px; z-index: 5; min-width: 150px; background: #fff; border: 1px solid var(--stone-line); border-radius: 8px; box-shadow: 0 12px 30px rgb(0 0 0 / 0.14); padding: 6px; display: grid; }
.lp-menu[hidden] { display: none; }
.lp-menu button { text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 6px; font: inherit; font-size: 14px; min-height: 40px; color: var(--ink); }
.lp-menu button:hover { background: var(--stone-soft); }
.lp-menu .danger { color: #b3261e; }
.lp-flag { margin: 0; font-size: 13px; padding: 8px 12px; border-radius: 6px; background: rgb(201 165 92 / 0.15); }
.lp-title { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; }
.lp-body { font-size: 15.5px; line-height: 1.7; max-width: none; }
.lp-body > div > :first-child { margin-top: 0; } .lp-body > div > :last-child { margin-bottom: 0; }
.lp-body.is-clamped { max-height: 9.5em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.lp-body h3 { font-size: 16px; margin: 14px 0 6px; }
.lp-body ul, .lp-body ol { padding-left: 20px; }
.lp-body a { text-decoration: underline; text-underline-offset: 3px; }
.lp-expand { justify-self: start; margin-top: -6px; border: 0; background: none; padding: 0; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 32px; }
.lp-expand[hidden] { display: none; }
.lp-imgs { display: grid; gap: 4px; border-radius: 8px; overflow: hidden; margin: 0 -2px; }
.lp-imgs.n2 { grid-template-columns: 1fr 1fr; }
.lp-imgs.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.lp-imgs.n3 .lp-img:first-child { grid-row: span 2; }
.lp-imgs.n4, .lp-imgs.n5 { grid-template-columns: 1fr 1fr; }
.lp-imgs.n5 .lp-img:first-child { grid-column: span 2; }
.lp-img { position: relative; border: 0; padding: 0; background: var(--stone); aspect-ratio: 4 / 3; cursor: zoom-in; overflow: hidden; }
.lp-imgs.n1 .lp-img { aspect-ratio: 16 / 10; }
.lp-imgs.n3 .lp-img:first-child { aspect-ratio: auto; }
.lp-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.lp-img:hover img { transform: scale(1.03); }
.lp-img span { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(0 0 0 / 0.5); color: #fff; font-size: 24px; font-weight: 600; }
.lp-src { margin: 0; font-size: 13px; color: var(--muted-light); }
.lp-src a { text-decoration: underline; text-underline-offset: 3px; }
.lp-stats { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted-light); min-height: 28px; }
.lp-stats .tlink { border: 0; background: none; padding: 0; font: inherit; font-size: 13.5px; color: inherit; cursor: pointer; min-height: 32px; }
.lp-emos i { font-style: normal; margin-right: -3px; }
.lp-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--stone-line); }
.lp-act { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 46px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted-light); border-radius: 6px; cursor: pointer; }
.lp-act i { font-style: normal; font-size: 16px; }
.lp-act:hover { background: var(--stone-soft); color: var(--ink); }
.lp-react.is-on { color: var(--gold-deep); }
.ic-like { filter: grayscale(1); opacity: 0.7; }
.lp-react-wrap { position: relative; }
.lp-pop { position: absolute; left: 6px; bottom: calc(100% + 4px); z-index: 6; display: flex; gap: 2px; padding: 6px; background: #fff; border-radius: 999px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.18); border: 1px solid var(--stone-line); animation: live-in 0.3s var(--ease) both; }
.lp-pop[hidden] { display: none; }
.lp-pop button { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; font-size: 24px; line-height: 1; transition: transform 0.25s var(--ease); cursor: pointer; }
.lp-pop button:hover, .lp-pop button:focus-visible { transform: scale(1.25) translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .lp-pop button:hover { transform: none; } }

/* comments */
.lp-comments { border-top: 1px solid var(--stone-line); padding: 12px 0 10px; display: grid; gap: 12px; }
.lp-comments[hidden] { display: none; }
.lc-list { display: grid; gap: 10px; }
.lc { display: flex; gap: 10px; align-items: flex-start; }
.lc .lc-av { width: 32px; height: 32px; font-size: 13px; }
.lc-b { min-width: 0; display: grid; gap: 2px; }
.lc-bubble { background: var(--stone-soft); border-radius: 14px; padding: 8px 12px; }
.lc-bubble b { font-size: 13.5px; }
.lc-bubble p { margin: 2px 0 0; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.lc.is-hidden .lc-bubble { opacity: 0.55; }
.lc-meta { display: flex; flex-wrap: wrap; gap: 0 4px; align-items: center; padding-left: 8px; font-size: 12.5px; color: var(--muted-light); }
.lc-meta span { margin-right: 6px; }
.lc-meta button { border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted-light); padding: 0 6px; min-height: 32px; cursor: pointer; }
.lc-meta button:hover { color: var(--ink); }
.lc-meta button.is-on { color: #b3261e; }
.lc-replies { display: grid; gap: 10px; padding-left: 42px; }
.lc-form { display: flex; gap: 8px; align-items: flex-end; }
.lc-form.is-reply { padding-left: 42px; }
.lc-form .lc-av { width: 32px; height: 32px; font-size: 13px; }
.lc-form textarea { flex: 1; min-width: 0; resize: none; min-height: 44px; max-height: 200px; border: 1px solid #cfccc1; border-radius: 22px; padding: 11px 16px; font: inherit; font-size: 15px; line-height: 1.45; background: #fff; color: var(--ink); }
.lc-form textarea:focus, .lp-edit textarea:focus, .lp-edit input:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgb(201 165 92 / 0.25); }
.lc-form .btn { min-height: 44px; }
.lp-edit { display: grid; gap: 8px; }
.lp-edit input, .lp-edit textarea { width: 100%; border: 1px solid #cfccc1; border-radius: 6px; padding: 10px 12px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
.lp-edit .tlink { border: 0; background: none; font: inherit; cursor: pointer; min-height: 40px; }

/* sidebar */
.lounge-side { display: grid; gap: 14px; align-content: start; }
.ls-card { background: var(--paper); color: var(--ink); border-radius: var(--radius-card); padding: 18px; display: grid; gap: 10px; }
.ls-card h3 { margin: 0; font-size: 15px; font-weight: 600; }
.ls-me { justify-items: start; }
.ls-me > b { font-size: 17px; }
.ls-pts { font-size: 13px; color: var(--muted-light); } .ls-pts b { font-size: 22px; color: var(--gold-deep); letter-spacing: -0.02em; }
.ls-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ls-hot { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; }
.ls-hot li::marker { color: var(--gold-deep); font-weight: 700; }
.ls-hot a { display: block; line-height: 1.4; }
.ls-hot a:hover { text-decoration: underline; }
.ls-hot small { font-size: 12px; color: var(--muted-light); }
.ls-rules ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.5; }
@media (max-width: 1079px) { .lounge-side { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }

/* modal, lightbox, toast */
.lounge-modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 16px; background: rgb(0 0 0 / 0.7); }
.lounge-modal[hidden] { display: none; }
.lounge-modal .gb-form { width: min(460px, 100%); animation: live-in 0.4s var(--ease) both; }
.lounge-modal h2 { margin: 0; font-size: 26px; }
.lounge-modal .tlink { border: 0; background: none; font: inherit; cursor: pointer; min-height: 44px; }
.lounge-lightbox { position: fixed; inset: 0; z-index: 140; background: rgb(0 0 0 / 0.92); display: grid; place-items: center; }
.lounge-lightbox[hidden] { display: none; }
.lounge-lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; border-radius: 4px; }
.ll-x, .ll-nav { position: absolute; border: 0; background: rgb(255 255 255 / 0.12); color: #fff; border-radius: 50%; width: 48px; height: 48px; font-size: 28px; line-height: 1; cursor: pointer; }
.ll-x { top: 16px; right: 16px; }
.ll-nav { top: 50%; transform: translateY(-50%); }
.ll-nav.prev { left: 12px; } .ll-nav.next { right: 12px; }
.ll-nav[hidden] { display: none; }
.lounge-toast { position: fixed; left: 50%; bottom: 24px; z-index: 150; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100vw - 32px); background: var(--ink); color: var(--bone); padding: 12px 20px; border-radius: 999px; font-size: 14px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.3); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.lounge-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.lounge-toast.is-err { background: #b3261e; }

/* ---------- personal page (account.html) ---------- */
.me-hero { padding-top: clamp(120px, 14vw, 180px); }
.me-welcome { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 18px; margin-bottom: 28px; border-radius: var(--radius-card); background: rgb(201 165 92 / 0.14); border: 1px solid rgb(201 165 92 / 0.4); animation: live-in 0.7s var(--ease) both; }
.me-welcome[hidden] { display: none; }
.me-welcome b { color: var(--gold-light); }
.me-welcome span { flex: 1 1 260px; font-size: 14.5px; opacity: 0.9; }
.me-grid { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 1000px) { .me-grid { grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr); align-items: start; } }
.me-id { display: grid; gap: 14px; align-content: start; justify-items: start; }
.me-id .kicker { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.me-id .auth-title { margin: 0; }
.me-bio { margin: 0; max-width: 30ch; }
.me-id .muted { margin: 0; font-size: 14px; }
.me-av-wrap { position: relative; }
.me-av { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--ink-soft); border: 2px solid var(--gold); color: var(--gold-light); font-size: 44px; font-weight: 600; }
.me-av img { width: 100%; height: 100%; object-fit: cover; }
.me-av-btn { position: absolute; right: -2px; bottom: -2px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); cursor: pointer; border: 3px solid var(--ink); transition: transform 0.3s var(--ease); }
.me-av-btn:hover { transform: scale(1.06); }
.me-av-btn svg { width: 20px; height: 20px; }
.me-stats { margin: 6px 0 4px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; width: 100%; max-width: 560px; border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); }
.me-stats div { padding: 14px 4px; display: grid; gap: 2px; }
.me-stats div + div { border-left: 1px solid var(--ink-line); padding-left: 14px; }
.me-stats dt { font-size: 12px; opacity: 0.65; }
.me-stats dd { margin: 0; font-size: 14px; color: var(--gold-light); }
.me-stats dd b { font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -0.03em; color: var(--bone); margin-right: 2px; }
@media (max-width: 479px) { .me-stats { grid-template-columns: 1fr 1fr; } .me-stats div:nth-child(3) { border-left: 0; padding-left: 4px; } .me-stats div:nth-child(n+3) { border-top: 1px solid var(--ink-line); } }
.me-side { display: grid; gap: 14px; }
.me-card { padding: 20px 22px !important; gap: 8px !important; }
.me-card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.me-card-h h2 { margin: 0; }
.me-notes, .me-posts { list-style: none; margin: 0; padding: 0; display: grid; }
.me-notes li, .me-posts li { border-bottom: 1px solid var(--stone-line); }
.me-notes li:last-child, .me-posts li:last-child { border-bottom: 0; }
.me-notes a, .me-posts a { display: grid; gap: 2px; padding: 10px 0; color: var(--ink); }
.me-notes a:hover b, .me-posts a:hover b { text-decoration: underline; }
.me-notes b, .me-posts b { font-size: 14px; font-weight: 600; }
.me-notes span { font-size: 13.5px; color: #3d3b36; }
.me-notes small, .me-posts small { font-size: 12px; color: var(--muted-light); }
.me-notes .muted, .me-posts .muted, .me-empty { padding: 10px 0; font-size: 13.5px; color: var(--muted-light); }
.me-profile { margin-bottom: 18px; }
.ch-lounge { background: var(--ink); color: var(--bone); border: 1px solid var(--gold); }
.ch-lounge .ic { background: var(--gold); color: var(--ink); }
.ch-lounge .lock { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0; color: var(--gold-light); vertical-align: 3px; }

.btn[hidden] { display: none; } /* .btn's display would otherwise beat the hidden attribute */

/* promo cards with a photo on top, text below (no text over images) */
.promo.has-img { padding: 0; gap: 0; justify-content: flex-start; min-height: 0; }
.promo-media { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.promo-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.promo.has-img:hover .promo-media img { transform: scale(1.05); }
.promo-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 24px; }
.promo-body p { margin-top: auto; }
.promo.gold .promo-media { border-bottom: 1px solid rgb(0 0 0 / 0.12); }
.promo-note { margin: 14px 0 0; font-size: 12.5px; opacity: 0.6; }
@media (prefers-reduced-motion: reduce) { .promo.has-img:hover .promo-media img { transform: none; } }

/* anti-spam security check (Cloudflare Turnstile, assets/js/supa.js) */
.f-captcha { min-height: 65px; margin: 4px 0 2px; }
.f-captcha:empty { min-height: 0; }
.f-status.is-locked { font-variant-numeric: tabular-nums; }
.gb-form .resend[hidden] { display: none; } /* .tlink display would otherwise beat [hidden] */

/* ---------- Design v2: page transitions (cross-document View Transitions) ----------
   Browsers that support them (html.vt, set in <head>) get a soft fade — header stays put — and,
   when a photo card was clicked, the photo flies into the next page's cover (html.vt-morph).
   Older browsers keep the curtain. */
@view-transition { navigation: auto; }
.vt .curtain { display: none; }
.vt main, .vt .header { animation: none; }
.header { view-transition-name: site-header; }
::view-transition-group(site-header) { animation-duration: 0.4s; }
::view-transition-old(root) { animation: vt-out 0.42s cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both; }
@keyframes vt-out { to { opacity: 0; transform: scale(0.985); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(26px); } }
html.vt-morph .cover-media img { view-transition-name: page-hero; }
::view-transition-group(page-hero) { animation-duration: 0.9s; animation-timing-function: cubic-bezier(0.65, 0, 0.15, 1); }
::view-transition-old(page-hero), ::view-transition-new(page-hero) { height: 100%; object-fit: cover; overflow: clip; }
html.vt-morph::view-transition-new(root) { animation-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* ---------- Design v2: mobile action bar — the floating buttons become one bar at the bottom ---------- */
.fab .f-quote { display: none; }
@media (max-width: 767px) {
  .fab {
    left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 6px; padding: 6px;
    border-radius: 18px; background: rgb(12 12 12 / 0.86); border: 1px solid rgb(255 255 255 / 0.1);
    backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
    box-shadow: 0 18px 44px rgb(0 0 0 / 0.38);
  }
  .fab a, .fab .f-music { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; box-shadow: none; }
  .fab .f-music { order: 9; border-color: rgb(201 165 92 / 0.35); }
  .fab .f-quote {
    display: flex; flex: 1 1 auto; width: auto; min-width: 0; align-items: center; justify-content: center;
    background: var(--gold); color: var(--ink); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; white-space: nowrap;
  }
  .fab a:hover { transform: none; }
  .menu-open .fab { transform: translateY(140%); }
  .music-toast { right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
}

/* ---------- Design v2: magazine cards (guide hub) ---------- */
.block.paper { background: var(--paper); color: var(--ink); }
.mag-head { display: flex; justify-content: space-between; align-items: end; gap: 20px 40px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.mag-head .mag-title { margin: 0; font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; }
.mag-head p { margin: 0; max-width: 40ch; font-size: 15px; line-height: 1.6; color: var(--muted); }
.mag-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .mag-grid { grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(170px, 15vw, 220px); gap: 16px; } }
.mag-card { position: relative; display: block; overflow: hidden; border-radius: 10px; min-height: 300px; color: var(--bone); isolation: isolate; background: var(--ink-soft); }
.mag-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.mag-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(0 0 0 / 0.82) 0%, rgb(0 0 0 / 0.35) 45%, rgb(0 0 0 / 0.02) 75%); }
.mag-card .in { position: absolute; left: 20px; right: 20px; bottom: 18px; display: grid; gap: 7px; }
.mag-card .k { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); }
.mag-card h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.22; }
.mag-card p { margin: 0; font-size: 13.5px; line-height: 1.5; color: rgb(255 255 255 / 0.84); max-width: 46ch; }
.mag-card .go { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 17px;
  background: rgb(0 0 0 / 0.32); border: 1px solid rgb(255 255 255 / 0.28); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transform: rotate(-45deg); transition: transform 0.6s var(--ease), background 0.4s, color 0.4s; }
@media (hover: hover) {
  .mag-card:hover img { transform: scale(1.06); }
  .mag-card:hover .go { transform: rotate(0); background: var(--gold); color: var(--ink); }
}
.mag-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.mag-card.feature h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 54px); line-height: 1.06; letter-spacing: -0.01em; }
html[data-lang="en"] .mag-card.feature h3 { font-style: italic; }
.mag-card.feature .in { left: clamp(20px, 2.6vw, 36px); bottom: clamp(18px, 2.4vw, 34px); gap: 10px; }
.mag-card.feature p { font-size: 15px; }
@media (max-width: 899px) { .mag-card.feature { min-height: 440px; } }
@media (min-width: 900px) {
  .mag-card { min-height: 0; }
  .mag-card.feature { grid-column: span 7; grid-row: span 3; }
  .mag-card.tall { grid-column: span 5; grid-row: span 2; }
  .mag-card.wide { grid-column: span 5; grid-row: span 1; }
  .mag-card.wide p { display: none; }
  .mag-card.third { grid-column: span 4; grid-row: span 2; }
}
/* category rows: swipe rail on phones, 4-up grid on desktop */
.mag-rail { display: grid; gap: 12px; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; scrollbar-width: none; }
.mag-rail::-webkit-scrollbar { display: none; }
.mag-rail .mag-card { scroll-snap-align: start; min-height: 0; aspect-ratio: 4 / 5; }
@media (min-width: 640px) { .mag-rail { grid-auto-columns: 46%; } }
@media (min-width: 1080px) { .mag-rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; gap: 16px; } }
.stone .mag-card, .paper .mag-card { box-shadow: 0 18px 40px rgb(0 0 0 / 0.12); }

/* ---------- Design v2: line icons (assets/img/icons.svg) ---------- */
.ico { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -0.14em; }
.ico-head { width: 0.82em; height: 0.82em; margin-right: 0.32em; color: var(--gold); vertical-align: -0.06em; }
.stone .ico-head, .paper .ico-head { color: var(--gold-deep); }
.mag-card .k { display: inline-flex; align-items: center; gap: 7px; }
.mag-card .k .ico { width: 15px; height: 15px; }
.cover-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cover-top .crumbs { margin: 0 !important; }
.cover-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%;
  border: 1px solid rgb(201 165 92 / 0.6); background: rgb(0 0 0 / 0.25); color: var(--gold-light);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cover-icon .ico { width: 19px; height: 19px; }

/* ---------- Design v2: “핵심 한 줄” — one editorial line between dense sections of a guide ---------- */
.keyline { padding: clamp(80px, 10vw, 140px) 0; background: var(--ink); color: var(--bone); position: relative; overflow: hidden; }
.keyline::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: clamp(40px, 6vw, 72px); background: linear-gradient(var(--gold), transparent); }
.kl-label { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); }
.kl-label .ico { width: 20px; height: 20px; color: var(--gold); }
.kl-text { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(28px, 3.6vw, 54px); line-height: 1.3; letter-spacing: -0.01em; max-width: 24ch; }
html[data-lang="en"] .kl-text { font-style: italic; }
html[data-lang="ko"] .kl-text { line-height: 1.45; letter-spacing: -0.02em; }

/* ---------- Design v2: load choreography — first-screen elements arrive in order, not all at once ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > [data-reveal]:nth-child(1) { transition-delay: 0.1s; }
  .hero-copy > [data-reveal]:nth-child(2) { transition-delay: 0.25s; }
  .hero-copy > [data-reveal]:nth-child(3) { transition-delay: 0.55s; }
  .hero-copy > [data-reveal]:nth-child(4) { transition-delay: 0.75s; }
  .hero-meta, .hero-progress { animation: gb-arrive 1s cubic-bezier(0.22, 1, 0.36, 1) 1s both; }
  .cover:not(.cover-sm) .crumbs { animation: gb-arrive 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
  .cover:not(.cover-sm) .cover-chips { animation: gb-arrive 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.85s both; }
  .cover:not(.cover-sm) .cover-scroll { animation: gb-arrive 0.9s ease 1.2s both; }
}
@keyframes gb-arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.shot .hero-meta, .shot .hero-progress, .shot .cover-icon, .shot .crumbs, .shot .cover-chips, .shot .cover-scroll { animation: none; }

/* long chapter titles (e.g. “Dragon Bridge”) step down a size so the cover never crowds the header */
.cover-title.is-long { font-size: clamp(52px, 9.4vw, 150px); }
.cover-sm .cover-title.is-long { font-size: clamp(46px, 7.6vw, 116px); }
.cover .crumbs { flex-wrap: wrap; row-gap: 4px; }
.cover-top .crumbs { min-width: 0; }
