:root {
  --bg: #000000;
  --bg2: #0f0d09;
  --fg: #f0e5c4;
  --dim: rgba(240, 229, 196, .55);
  --line: #2a2722;
  --red: #b01d17;
  --red-hi: #b01d17;
  --sans: "Outfit", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --jp: "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.5; overflow-x: hidden; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--red); color: var(--fg); }

.mono { font-family: var(--mono); }
.jp { font-family: var(--jp); }
.red { color: var(--red-hi); }
.dim { color: var(--dim); }
.small { font-size: 12px; letter-spacing: .1em; }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--red-hi); margin-bottom: 1.5rem; }

/* ---------- textura ---------- */
.noise {
  position: fixed; inset: -50%; pointer-events: none; z-index: 90; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0,0); } 25% { transform: translate(-3%,2%); } 50% { transform: translate(2%,-3%); } 75% { transform: translate(-2%,-1%); } }
body.safe .noise { animation: none; }

/* padrão oficial da marca */
.pattern {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: url("../assets/pattern-dark.svg") 0 0 / 520px repeat;
  opacity: .12;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 20%, #000 75%);
          mask-image: radial-gradient(ellipse at center, transparent 20%, #000 75%);
  animation: drift 90s linear infinite;
}
.pattern--band { opacity: .1; -webkit-mask-image: none; mask-image: none; }
@keyframes drift { to { background-position: 520px 520px; } }
body.safe .pattern { animation: none; }

/* ---------- botões ---------- */
.btn { font-family: var(--mono); border: 1px solid var(--fg); padding: .8em 1.4em; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--fg); color: var(--bg); }
.btn--solid { background: var(--red); border-color: var(--red); color: var(--fg); font-weight: 700; }
.btn--solid:hover { background: var(--fg); border-color: var(--fg); color: var(--red); }
.cta { display: inline-block; margin-top: 2.5rem; font-size: 14px; letter-spacing: .15em; border-bottom: 1px solid var(--red); padding-bottom: .3em; transition: color .2s, letter-spacing .3s; }
.cta:hover { color: var(--red-hi); letter-spacing: .25em; }

/* ---------- gate ---------- */
.gate { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; padding: 16px; transition: opacity .7s, visibility .7s; }
.gate.out { opacity: 0; visibility: hidden; }
.gate__boot { position: absolute; inset: 0; padding: 16px; font-size: 11px; color: rgba(240, 229, 196, .18); overflow: hidden; line-height: 1.6; letter-spacing: .1em; }
.gate__panel { position: relative; max-width: 560px; width: 100%; border: 1px solid var(--red); background: var(--bg); padding: 1rem 2rem 2.2rem; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; }
.gate__panel.show { opacity: 1; transform: none; }
.gate__logo { width: 100%; aspect-ratio: 3.2 / 1; object-fit: cover; margin-bottom: 1rem; }
.gate__text { color: var(--dim); font-size: 14px; margin-bottom: 2rem; }
.gate__btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.gate__meta { margin-top: 2rem; font-size: 10px; letter-spacing: .25em; color: var(--dim); }

/* ---------- header ---------- */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 10px clamp(16px, 4vw, 48px); background: linear-gradient(to bottom, rgba(0,0,0,.95), rgba(0,0,0,0)); font-size: 12px; letter-spacing: .15em; }
.hdr__logo img { width: 130px; aspect-ratio: 3.2 / 1; object-fit: cover; }
.hdr__nav { display: flex; gap: 1.5rem; }
.hdr__nav a:hover { color: var(--red-hi); }
.hdr__clock { color: var(--dim); }
@media (max-width: 640px) { .hdr__clock { display: none; } .hdr__nav { gap: .7rem; font-size: 10px; } .hdr__logo img { width: 96px; } }

/* ---------- seções ---------- */
section { padding: clamp(80px, 12vw, 160px) clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.sec-title { font-weight: 900; font-size: clamp(2rem, 5.5vw, 4.5rem); line-height: 1; text-transform: uppercase; letter-spacing: -.01em; max-width: 18ch; }
.data { font-family: var(--mono); font-weight: 400; font-size: .32em; vertical-align: middle; color: var(--red-hi); letter-spacing: .1em; text-transform: none; }
.vert { position: absolute; writing-mode: vertical-rl; letter-spacing: .6em; font-size: 13px; color: var(--dim); }

/* hero */
.hero { min-height: 100svh; display: grid; place-items: center; border-top: 0; padding-top: 100px; }
.hero > * { position: relative; z-index: 2; }
.hero > .pattern { position: absolute; z-index: 0; }
.hero__kanji {
  position: absolute !important; z-index: 1 !important; right: -11vw; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; font-weight: 900; line-height: .95;
  font-size: clamp(9rem, 30vw, 26rem); color: var(--red); opacity: .9;
}
.hero__meta { position: absolute !important; top: 84px; left: clamp(16px, 4vw, 48px); right: clamp(16px, 4vw, 48px); display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .2em; color: var(--dim); }
.hero__center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__logo { width: min(72vw, 820px); }
@media (max-width: 640px) { .hero__logo { width: 92vw; } }
.hero__logo img { width: 100%; aspect-ratio: 3.2 / 1; object-fit: cover; filter: drop-shadow(0 10px 40px rgba(0,0,0,.8)); }
.hero__tag { display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center; margin-top: 1.4rem; font-weight: 800; font-size: clamp(1.3rem, 3vw, 2.2rem); letter-spacing: .04em; }
.hero .vert { position: absolute; left: clamp(10px, 2.5vw, 36px); top: 50%; transform: translateY(-50%); }
.hero__scroll { position: absolute !important; bottom: 24px; left: 50%; transform: translateX(-50%); font-size: 10px; letter-spacing: .3em; color: var(--dim); animation: bob 2s infinite; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }
@media (max-width: 640px) { .hero__kanji { opacity: .35; } .hero .vert { display: none; } }

/* glitch na logo */
.glitchable { position: relative; }
body.glitch .glitchable::before, body.glitch .glitchable::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/logo.png") center / cover no-repeat;
}
body.glitch .glitchable::before { filter: grayscale(1) brightness(3); mix-blend-mode: screen; opacity: .6; animation: gl1 2.6s infinite steps(1); }
body.glitch .glitchable::after { animation: gl2 3.3s infinite steps(1); }
@keyframes gl1 {
  0%, 88%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
  89% { clip-path: inset(38% 0 48% 0); transform: translate(-12px, 0); }
  92% { clip-path: inset(50% 0 38% 0); transform: translate(14px, 0); }
  95% { clip-path: inset(44% 0 44% 0); transform: translate(-6px, 0); }
}
@keyframes gl2 {
  0%, 80%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
  81% { clip-path: inset(55% 0 36% 0); transform: translate(10px, 0); }
  85% { clip-path: inset(36% 0 55% 0); transform: translate(-14px, 0); }
}

/* manifesto */
.manifesto__grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.manifesto__text { font-weight: 800; font-size: clamp(1.6rem, 4vw, 3.4rem); line-height: 1.12; text-transform: uppercase; max-width: 24ch; }
.manifesto__kanji { font-weight: 900; font-size: clamp(5rem, 13vw, 11rem); line-height: 1; color: var(--red); }
.marquee-wrap { overflow: hidden; margin-top: 5rem; border-top: 1px solid var(--red); border-bottom: 1px solid var(--red); padding: 1rem 0; }
.marquee { display: flex; gap: 3rem; list-style: none; white-space: nowrap; font-size: 12px; letter-spacing: .25em; color: var(--fg); animation: mq 30s linear infinite; width: max-content; }
@keyframes mq { to { transform: translateX(-50%); } }
body.safe .marquee { animation: none; }
@media (max-width: 640px) { .manifesto__grid { grid-template-columns: 1fr; } .manifesto__kanji { display: none; } }

/* drinks */
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 3rem; }
.sec-head .tag { width: 100%; margin: 0; }
.toggle { display: flex; gap: .5rem; font-size: 12px; letter-spacing: .15em; }
.toggle button { color: var(--dim); }
.toggle button.is-on { color: var(--red-hi); }

.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--bg); padding: 1.2rem; text-align: left; position: relative; aspect-ratio: 3/4; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: background .3s; }
.card__code { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--dim); }
.card__glyph { font-family: var(--jp); font-weight: 900; font-size: clamp(4.5rem, 10vw, 7rem); line-height: 1; text-align: center; color: var(--fg); transition: transform .4s, color .3s; }
.card__name { font-weight: 800; font-size: 1.4rem; text-transform: uppercase; line-height: 1.1; }
.card__name small { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .15em; color: var(--dim); display: block; margin-top: .2rem; }
.card__enter { position: absolute; top: 1.2rem; right: 1.2rem; font-size: 10px; letter-spacing: .15em; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.card:hover, .card:focus-visible { background: var(--red); outline: none; }
.card:hover .card__glyph, .card:focus-visible .card__glyph { transform: scale(1.12); }
.card:hover .card__code, .card:hover .card__name small, .card:focus-visible .card__name small { color: var(--fg); }
.card:hover .card__enter, .card:focus-visible .card__enter { opacity: 1; transform: none; }
.drinks__hint { margin-top: 1.2rem; font-size: 11px; letter-spacing: .2em; color: var(--dim); }

.catalog.list { grid-template-columns: 1fr; }
.catalog.list .card { aspect-ratio: auto; flex-direction: row; align-items: center; gap: 1.5rem; padding: .9rem 1.2rem; }
.catalog.list .card__glyph { font-size: 2.2rem; order: -1; width: 3.5rem; }
.catalog.list .card__name { flex: 1; }
.catalog.list .card__enter { position: static; }

.detail__name { font-weight: 900; font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1; text-transform: uppercase; margin-bottom: 1rem; }

.stats { list-style: none; display: grid; gap: .8rem; max-width: 480px; font-family: var(--mono); }
.stats li { display: grid; grid-template-columns: 7.5rem 1fr 2rem; align-items: center; gap: 1rem; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.stats .jp { color: var(--dim); margin-left: .4em; }
.bar { height: 4px; background: var(--line); position: relative; }
.bar i { position: absolute; inset: 0; width: 0; background: var(--fg); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.bar i.hi { background: var(--red-hi); }
.stats b { text-align: right; }

/* band */
.band { padding-left: 0; padding-right: 0; background: var(--red); border: 0; }
.band .pattern { filter: brightness(0); opacity: .12; }
/* colunas verticais: leitura japonesa, da direita para a esquerda */
.band__cols { position: relative; display: flex; flex-direction: row-reverse; justify-content: center; align-items: flex-start; gap: clamp(2.5rem, 10vw, 9rem); }
.band__col { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.band__jp { writing-mode: vertical-rl; text-orientation: upright; font-weight: 900; font-size: clamp(3.2rem, 9vw, 7.5rem); line-height: 1; letter-spacing: .08em; color: var(--bg); }
.band__jp--outline { color: transparent; -webkit-text-stroke: 2px var(--bg); }
.band__tr { font-size: 11px; letter-spacing: .25em; color: var(--bg); white-space: nowrap; }
.band__note { position: relative; text-align: center; margin-top: 2.5rem; font-size: 12px; letter-spacing: .2em; color: var(--bg); text-transform: uppercase; padding: 0 16px; }

/* oráculo */
.oracle__box { margin-top: 3rem; border: 1px solid var(--line); padding: clamp(1.2rem, 3vw, 2.5rem); max-width: 900px; }
.oracle__term { font-size: 12px; letter-spacing: .12em; color: var(--dim); min-height: 9.5em; white-space: pre-line; }
.oracle__term .ok { color: var(--red-hi); }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.oracle__result { display: flex; gap: 2rem; align-items: center; margin: 1.5rem 0; }
.oracle__glyph { font-weight: 900; font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--red); }
.oracle__btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }

/* local */
.local__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.local__big { font-weight: 900; font-size: clamp(5rem, 22vw, 20rem); line-height: .85; letter-spacing: -.02em; }
.hanko { flex-shrink: 0; width: clamp(80px, 12vw, 150px); aspect-ratio: 1; background: var(--red); color: var(--bg); border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: clamp(44px, 7vw, 92px); transform: rotate(6deg); }
.hanko--2 { font-size: clamp(30px, 4.6vw, 60px); line-height: 1; text-align: center; }
.countdown { margin-top: 1.5rem; font-size: clamp(14px, 2.4vw, 22px); letter-spacing: .2em; color: var(--red-hi); }
.local__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 4rem 0 1rem; }
.local__grid > div { background: var(--bg); padding: 1.4rem; font-size: 13px; letter-spacing: .1em; }
.local__grid span { font-size: 10px; letter-spacing: .25em; display: block; margin-bottom: .6rem; }
.local__grid a:hover { color: var(--red-hi); }

/* footer */
.ftr { border-top: 1px solid var(--red); padding: 40px clamp(16px, 4vw, 48px) 24px; }
.ftr__logo { width: min(100%, 560px); aspect-ratio: 3.2 / 1; object-fit: cover; margin: 0 auto 1.5rem; }
.ftr__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 10px; letter-spacing: .2em; color: var(--dim); }

/* ---------- visão imersiva do drink ---------- */
body.dv-lock { overflow: hidden; }
.oracle__result { cursor: pointer; }
.dv { position: fixed; inset: 0; z-index: 80; }
.dv[hidden] { display: none; }
.dv__zoom { position: fixed; top: 0; left: 0; width: 0; height: 0; background: var(--red); display: grid; place-items: center; overflow: hidden; z-index: 2; will-change: top, left, width, height; }
.dv__zoomGlyph { font-weight: 900; line-height: 1; color: var(--fg); will-change: transform, opacity; }
.dv__content {
  position: fixed; inset: 0; z-index: 1; opacity: 0; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: 1fr auto;
  background: radial-gradient(ellipse at 30% 60%, rgba(176, 29, 23, .32), #000 62%), #000;
}
/* foto de fundo do drink (campo "fundo" em drinks.js) */
.dv__content.has-photo {
  background:
    linear-gradient(90deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.88) 62%, #000 100%),
    radial-gradient(ellipse at 30% 75%, transparent 30%, rgba(0,0,0,.55) 100%),
    var(--dv-photo) 30% center / cover no-repeat, #000;
}
.dv__content.has-photo .dv__bgGlyph { display: none; }
.dv__content.has-photo .dv__info { background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.7)); backdrop-filter: blur(3px); }
.dv__content.has-photo .dv__hint { color: var(--fg); text-shadow: 0 1px 6px #000; }
.dv__stage { position: relative; grid-row: 1 / 3; min-height: 0; overflow: hidden; }
.dv__stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; cursor: grab; touch-action: none; }
.dv__stage canvas:active { cursor: grabbing; }
.dv__bgGlyph {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); pointer-events: none;
  font-weight: 900; font-size: clamp(14rem, 42vw, 40rem); line-height: 1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(176, 29, 23, .45);
}
.dv__stage.no-gl .dv__bgGlyph { color: var(--red); -webkit-text-stroke: 0; font-size: clamp(10rem, 30vw, 26rem); }
.dv__stage.no-gl .dv__hint { display: none; }
.dv__hint { position: absolute; left: clamp(16px, 3vw, 40px); bottom: 24px; font-size: 10px; letter-spacing: .25em; color: var(--dim); }

.dv__info { min-height: 0; overflow-y: auto; padding: clamp(80px, 12vh, 140px) clamp(20px, 4vw, 64px) 40px clamp(16px, 2vw, 32px); scrollbar-width: thin; scrollbar-color: var(--red) transparent; }
.dv__name { font-weight: 900; font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: .95; text-transform: uppercase; letter-spacing: -.01em; }
.dv__jp { font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 2.6rem); color: var(--red-hi); margin-top: .6rem; letter-spacing: .08em; }
.dv__romaji { font-size: 12px; letter-spacing: .25em; color: var(--dim); text-transform: uppercase; margin-top: .2rem; }
.dv__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 2rem 0 2.4rem; }
.dv__meta > div { background: #000; padding: .9rem 1rem; }
.dv__meta span { display: block; font-size: 10px; letter-spacing: .25em; color: var(--dim); margin-bottom: .3rem; }
.dv__meta b { font-weight: 400; font-size: 13px; letter-spacing: .08em; }
.dv__h { font-size: 11px; letter-spacing: .25em; color: var(--red-hi); font-weight: 400; margin: 0 0 1rem; }
.dv__story { max-width: 56ch; margin-bottom: 2.4rem; }
.dv__story p { font-weight: 300; font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.7; color: rgba(240, 229, 196, .85); }
.dv__story p + p { margin-top: 1rem; }
.dv__story p:first-child::first-letter { font-weight: 900; font-size: 3.2em; float: left; line-height: .9; margin: .05em .12em 0 0; color: var(--red-hi); }
.dv__ing { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.4rem; }
.dv__ing li { border: 1px solid var(--line); padding: .45em .8em; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

.dv__bar { display: flex; align-items: center; gap: .6rem; padding: 16px clamp(20px, 4vw, 64px) 20px clamp(16px, 2vw, 32px); border-top: 1px solid var(--line); background: #000; font-size: 11px; letter-spacing: .2em; }
.dv__bar #dvCount { color: var(--dim); padding: 0 .4rem; }
.dv__bar #dvClose { margin-left: auto; }

.dv.show .dv__info > * { animation: dvUp .8s cubic-bezier(.2,.8,.2,1) both; }
.dv.show .dv__info > :nth-child(2) { animation-delay: .08s; }
.dv.show .dv__info > :nth-child(3) { animation-delay: .16s; }
.dv.show .dv__info > :nth-child(4) { animation-delay: .22s; }
.dv.show .dv__info > :nth-child(n+5) { animation-delay: .3s; }
@keyframes dvUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
body.safe .dv.show .dv__info > * { animation: none; }

@media (max-width: 860px) {
  .dv__content { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dv__info { padding: 72px 20px 32px 12px; }
  .dv__name { font-size: clamp(2rem, 5.5vw, 3rem); }
  .dv__bar { padding: 12px 16px; }
}
/* só em celular (tela estreita demais para duas colunas) o texto vai para baixo */
@media (max-width: 600px) {
  .dv__content { grid-template-columns: 1fr; grid-template-rows: 52svh auto auto; overflow-y: auto; }
  .dv__content.has-photo {
    background:
      linear-gradient(180deg, rgba(0,0,0,.2) 0, rgba(0,0,0,.4) 40svh, #000 56svh),
      var(--dv-photo) center top / auto 56svh no-repeat, #000;
  }
  .dv__content.has-photo .dv__info { background: none; backdrop-filter: none; }
  .dv__stage { grid-row: auto; }
  .dv__info { overflow: visible; padding: 24px 16px 32px; }
  .dv__bar { position: sticky; bottom: 0; padding: 12px 16px; }
  .dv__bar .btn { padding: .7em 1em; }
}

/* reveal */
.rv { opacity: 0; transform: translateY(30px); transition: opacity .9s, transform .9s; }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- tour: o salão por dentro ---------- */
.tour-sec__txt { margin-top: 1.2rem; color: var(--dim); max-width: 46ch; }
.tour-sec__preview { --px: 0; --py: 0; position: relative; display: block; width: 100%; margin-top: 2.5rem; aspect-ratio: 16 / 8; overflow: hidden; border: 1px solid var(--line); cursor: pointer; }
.tour-sec__preview img { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover; transform: translate(calc(var(--px) * -4%), calc(var(--py) * -4%)) scale(1.02); transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s; filter: saturate(1.05) brightness(.8); }
.tour-sec__preview:hover img { filter: saturate(1.15) brightness(.95); }
.tour-sec__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--red); color: var(--fg); padding: 1em 1.6em; font-size: 13px; letter-spacing: .2em; font-weight: 700; white-space: nowrap; transition: background .2s, color .2s; }
.tour-sec__preview:hover .tour-sec__play { background: var(--fg); color: var(--red); }
.tour-sec__corner { position: absolute; right: 14px; bottom: 12px; font-size: 10px; letter-spacing: .25em; color: var(--fg); text-shadow: 0 1px 6px #000; }

.tour { position: fixed; inset: 0; z-index: 85; background: #000; opacity: 0; transition: opacity .5s; overflow: hidden; }
.tour[hidden] { display: none; }
.tour.show { opacity: 1; }
.tour__stage, .tour__walk { position: absolute; inset: 0; overflow: hidden; }
.tour__stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; cursor: grab; touch-action: none; }
.tour__stage canvas:active { cursor: grabbing; }
.tour__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.65) 100%); }
.tour__stage.no-gl { background: url("../assets/tour/salao.jpg") center / cover no-repeat; }
.tour[data-mode="look"] .tour__walk, .tour[data-mode="walk"] .tour__stage, .tour[data-mode="look"] .tour__playbtn { display: none; }
.tour__labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.tour__spot { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: .6rem; transition: opacity .3s; }
.tour__dot { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(176,29,23,.35); animation: tourPulse 1.8s ease-out infinite; }
@keyframes tourPulse { 70% { box-shadow: 0 0 0 14px rgba(176,29,23,0); } 100% { box-shadow: 0 0 0 0 rgba(176,29,23,0); } }
.tour__lbl { margin-top: -7px; font-size: 10px; letter-spacing: .2em; background: rgba(0,0,0,.65); border: 1px solid var(--line); padding: .35em .7em; white-space: nowrap; }
.tour__spot.is-on .tour__lbl, .tour__spot:hover .tour__lbl { background: var(--red); border-color: var(--red); }
.tour__walk { display: grid; place-items: center; touch-action: none; cursor: ew-resize; background: url("../assets/tour/salao.jpg") center / cover no-repeat; }
.tour__walk::before { content: ""; position: absolute; inset: 0; backdrop-filter: blur(24px) brightness(.45); }
.tour__video { position: relative; height: 100%; max-width: 100%; object-fit: contain; box-shadow: 0 0 80px rgba(0,0,0,.8); }
.tour__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(240,229,196,.15); }
.tour__progress i { display: block; height: 100%; width: 0; background: var(--red); }
.tour__hint { position: absolute; left: 50%; top: 84px; transform: translateX(-50%); z-index: 3; font-size: 10px; letter-spacing: .25em; color: var(--fg); text-shadow: 0 1px 6px #000; pointer-events: none; white-space: nowrap; transition: opacity .6s; }
.tour__hint.is-gone { opacity: 0; }
.tour__top { position: absolute; top: 0; left: 0; right: 0; z-index: 4; display: flex; align-items: center; gap: .8rem; padding: 16px clamp(16px, 3vw, 32px); background: linear-gradient(180deg, rgba(0,0,0,.75), transparent); font-size: 11px; letter-spacing: .2em; }
.tour__title { margin-right: auto; color: var(--fg); }
.tour__modes { display: flex; gap: .4rem; }
.tour__modes .btn.is-on { background: var(--fg); color: var(--bg); }
.tour__playbtn { position: absolute; z-index: 4; right: clamp(16px, 3vw, 32px); bottom: 24px; background: rgba(0,0,0,.6); }
.tour__fade { position: absolute; inset: 0; z-index: 3; background: #000; opacity: 0; pointer-events: none; }
.tour__stage { transition: none; will-change: filter; }
.tour__spot.is-left { flex-direction: row-reverse; }
.tour__spot.is-left .tour__dot { margin: -7px -7px 0 0; }
.tour__spot.is-left.is-go .tour__dot { margin: -17px -17px 0 0; }
.tour__spot.is-left { transform-origin: right; translate: -100% 0; }
.tour__labels.is-hidden { opacity: 0; transition: opacity .2s; }
.tour__spot.is-go .tour__dot { width: 34px; height: 34px; margin: -17px 0 0 -17px; display: grid; place-items: center; font-size: 16px; color: var(--fg); border: 2px solid var(--fg); }
.tour__spot.is-go .tour__lbl { background: rgba(176,29,23,.85); border-color: var(--red); }
.tour__spot:not(.is-go) .tour__dot { background: var(--fg); box-shadow: 0 0 0 4px rgba(240,229,196,.3); }
.tour__nav { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: .6rem; padding: 14px clamp(16px, 3vw, 32px) 18px; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); }
.tour__route { flex: 1; display: flex; gap: 4px; min-width: 0; }
.tour__route button { flex: 1; min-width: 0; position: relative; height: 34px; border-top: 3px solid rgba(240,229,196,.25); text-align: left; padding-top: 6px; }
.tour__route button span { display: block; font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour__route button:hover { border-top-color: var(--fg); }
.tour__route button.is-on { border-top-color: var(--red); }
.tour__route button.is-on span { color: var(--fg); }
.tour[data-mode="walk"] .tour__nav { display: none; }
.tour__title b { color: var(--red-hi); font-weight: 400; margin-left: .6em; }
.tour-sec__thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 8px; }
.tour-sec__thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); }
.tour-sec__thumb img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); transition: filter .3s, transform .5s; }
.tour-sec__thumb:hover img { filter: brightness(.95); transform: scale(1.06); }
.tour-sec__thumb span { position: absolute; left: 8px; bottom: 6px; font-size: 9px; letter-spacing: .18em; text-shadow: 0 1px 4px #000; text-align: left; }
.tour-sec__thumb b { color: var(--red-hi); font-weight: 700; }
.tour__load { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: #000; font-size: 12px; letter-spacing: .25em; color: var(--dim); }
.tour__load[hidden] { display: none; }
.tour__info { position: absolute; z-index: 4; left: clamp(16px, 3vw, 32px); bottom: 96px; max-width: 340px; padding: 1.2rem 1.4rem; background: rgba(0,0,0,.72); border: 1px solid var(--line); backdrop-filter: blur(6px); font-size: 14px; line-height: 1.6; }
.tour__info .tag { margin-bottom: .6rem; }
.tour__info .cta { margin-top: 1rem; font-size: 12px; }
.tour[data-mode="walk"] .tour__info { display: none; }
body.safe .tour__dot { animation: none; }
@media (max-width: 600px) {
  .tour__top { flex-wrap: wrap; }
  .tour__title { width: 100%; }
  .tour__modes .btn, .tour__top .btn { padding: .6em .8em; font-size: 10px; }
  .tour__info { right: 16px; bottom: 64px; max-width: none; }
  .tour-sec__preview { aspect-ratio: 4 / 3; }
  .tour__hint { white-space: normal; width: calc(100% - 32px); text-align: center; top: 120px; }
  .tour__info { bottom: 120px; font-size: 13px; padding: .9rem 1rem; }
  .tour__route button span { display: none; }
  .tour__route button { height: 12px; }
  .tour-sec__thumbs { grid-template-columns: repeat(3, 1fr); }
}
