/* 한국탈중앙박물관 로비 시제품: 먹빛 로비, 인장의 口가 문이 되어 열린다 */
:root {
  --night: #12110F; --ink-on: #EFEBE4; --dim: #9C978D; --hair: rgba(239, 235, 228, .16); --seal: #D2271D;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --serif: "EB Garamond", "Times New Roman", serif;
  --gut: clamp(20px, 3.4vw, 52px);
}
* { box-sizing: border-box; }
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; background: var(--night); }
body { margin: 0; background: var(--night); color: var(--ink-on); font-family: var(--sans); font-weight: 300; line-height: 1.7;
  word-break: keep-all; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; }
html[lang="en"] .line, html[lang="en"] .halls__head h2, html[lang="en"] .hall__name, html[lang="en"] .plaque__name { font-family: var(--serif); font-weight: 400; }

/* 입장 */
.intro { position: fixed; inset: 0; z-index: 60; background: var(--night); display: grid; place-content: center; justify-items: center; gap: 22px;
  transition: opacity .9s ease, visibility .9s; }
.intro__seal { width: 72px; height: 72px; opacity: 0; transform: scale(1.35); filter: blur(6px); }
.intro__count { margin: 0; font-family: var(--serif); font-size: 13px; letter-spacing: .3em; color: var(--dim); font-variant-numeric: tabular-nums; min-width: 4ch; text-align: center; }
.js .intro__seal { animation: stamp .7s cubic-bezier(.3, 1.3, .5, 1) .25s forwards; }
@keyframes stamp { 60% { opacity: 1; transform: scale(.96); filter: blur(0); } to { opacity: 1; transform: none; filter: blur(0); } }
.is-in .intro { opacity: 0; visibility: hidden; }
.is-return .intro__count { visibility: hidden; }
html:not(.js) .intro { display: none; }
/* 입장 화면이 떠 있는 동안에는 스크롤하지 않는다 */
html.is-locked, html.is-locked body { overflow: hidden; }

/* 위 메뉴 */
.bar { position: fixed; z-index: 40; inset: 0 0 auto 0; display: flex; align-items: center; gap: 28px; padding: 22px var(--gut); font-size: 13px; letter-spacing: .08em;
  opacity: 0; transition: opacity 1s ease .4s, background .4s; }
.is-in .bar { opacity: 1; }
.bar.is-solid { background: rgba(18, 17, 15, .9); }
.bar__brand { display: flex; align-items: center; gap: 12px; letter-spacing: .3em; font-weight: 400; }
.bar__brand img { width: 22px; height: 22px; }
.bar__nav { display: flex; gap: 26px; margin-left: auto; }
.bar__nav .is-off { color: var(--dim); }
.bar__nav a { position: relative; }
.bar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.bar__nav a:hover::after { transform: none; }
.bar__lang { display: flex; gap: 4px; }
/* 관장 명함 단추: 위 막대에서 테두리 있는 단추는 이것 하나라 눈에 띈다 */
.bar__card { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 12px; border: 1px solid rgba(239, 235, 228, .42); background: rgba(18, 17, 15, .35);
  color: var(--ink-on); font: inherit; font-size: 12.5px; letter-spacing: .12em; white-space: nowrap; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.bar__card svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bar__card::after { content: ""; width: 6px; height: 6px; margin-left: 2px; background: var(--seal); }
.bar__card:hover, .bar__card:focus-visible { background: var(--ink-on); color: var(--night); border-color: var(--ink-on); }
.bar__lang button { font: inherit; letter-spacing: .1em; background: none; border: 0; color: var(--dim); cursor: pointer; padding: 6px 6px; }
.bar__lang button[aria-pressed="true"] { color: var(--ink-on); }

/* 정문: 스크롤하는 동안 무대는 화면에 붙어 있다 */
.gate { position: relative; height: 300vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scene { position: absolute; inset: 0; z-index: 2; overflow: hidden; clip-path: inset(50% 50% 50% 50%); will-change: clip-path;
  background: #141312; }
/* 머무는 동안의 느린 숨(배율·이동)은 이 틀에, 사진마다의 자리는 사진에 준다 */
.scene__cam { position: absolute; inset: 0; overflow: hidden; transform-origin: 50% 50%; perspective: 1400px; will-change: transform; }
/* 사진 세 장: 입구에서 본 전체, 가까이서 올려다본 정면, 옆에서 올려다본 모습. 자리와 크기는 스크립트가 정한다 */
.scene__img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; opacity: 0; will-change: transform, opacity; backface-visibility: hidden; }
.scene__img--far { opacity: 1; }
.scene__img--near { -webkit-mask-image: radial-gradient(ellipse 58% 60% at 50% 52%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 58% 60% at 50% 52%, #000 62%, transparent 100%); }
.scene__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 9, 8, .55) 0%, rgba(10, 9, 8, .12) 40%, rgba(10, 9, 8, 0) 70%); opacity: 0; }
.door { position: absolute; z-index: 1; left: 50%; top: 41%; width: min(40vh, 44vw); aspect-ratio: 1; transform: translate(-50%, -50%); will-change: transform, opacity; pointer-events: none; }
.door__seal { width: 100%; height: 100%; }
.js:not(.is-in) .door { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.door { transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2, .7, .1, 1); }
.door.is-live { transition: none; }
.plaque { position: absolute; z-index: 3; left: 0; right: 0; top: calc(41% + min(20vh, 22vw) + 4vh); text-align: center; }
.plaque__hanja { margin: 0 0 10px; font-family: var(--serif); font-size: 13px; letter-spacing: .55em; padding-left: .55em; color: var(--dim); }
.plaque__name { margin: 0; font-weight: 200; font-size: clamp(26px, 2.6vw, 40px); letter-spacing: .3em; padding-left: .3em; line-height: 1.3; }
.plaque__en { margin: 10px 0 0; font-family: var(--serif); font-size: 13px; letter-spacing: .32em; padding-left: .32em; text-transform: uppercase; color: var(--dim); }
.js:not(.is-in) .plaque, .js:not(.is-in) .hint { opacity: 0; }
.plaque, .hint { transition: opacity 1.2s ease .5s; }
.plaque.is-live, .hint.is-live { transition: none; }
.hint { position: absolute; z-index: 3; left: 0; right: 0; bottom: 80px; margin: 0; text-align: center; font-size: 12px; letter-spacing: .24em; color: var(--dim); }
.hint::after { content: ""; display: block; width: 1px; height: 22px; margin: 8px auto 0; background: linear-gradient(var(--dim), transparent); animation: drip 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.lines { position: absolute; z-index: 4; left: 0; right: 0; top: 11%; padding: 0 var(--gut); text-align: center; pointer-events: none; }
.line { position: absolute; left: var(--gut); right: var(--gut); margin: 0; font-weight: 300; font-size: clamp(28px, 3.4vw, 52px); line-height: 1.45; letter-spacing: -.01em;
  opacity: 0; transform: translateY(18px); filter: blur(4px); }
.line--small { font-size: clamp(20px, 2.1vw, 30px); max-width: 26em; margin: 0 auto; }
.label { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; margin: 0; padding: 64px var(--gut) 28px; background: linear-gradient(180deg, rgba(10, 9, 8, 0), rgba(10, 9, 8, .7)); pointer-events: none; font-size: 12px; line-height: 1.7; letter-spacing: .04em; color: var(--dim); text-shadow: 0 1px 10px rgba(0, 0, 0, .7); opacity: 0; }
.label b { display: block; font-weight: 500; font-size: 13px; color: var(--ink-on); }

/* 관 안내: 세 개의 문 */
.halls { position: relative; min-height: 100vh; min-height: 100svh; padding: clamp(88px, 9vw, 130px) var(--gut) clamp(80px, 9vw, 140px); }
.halls__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: clamp(36px, 4vw, 60px); }
.halls__head h2 { margin: 0; font-weight: 200; font-size: clamp(30px, 3.2vw, 48px); letter-spacing: .02em; }
.halls__head p { margin: 0; font-size: 13px; letter-spacing: .08em; color: var(--dim); }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.hall { position: relative; min-height: clamp(300px, calc(100vh - 340px), 620px); border: 1px solid var(--hair); display: grid; grid-template-rows: auto 1fr auto auto auto; justify-items: center;
  padding: 28px 20px 26px; overflow: hidden; transition: border-color .6s ease, background .6s ease; }
.hall::before { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(0deg, rgba(255, 236, 214, .09), transparent); opacity: 0; transition: opacity .8s ease; }
.hall.is-open::before { opacity: 1; }
.hall__no { font-family: var(--serif); font-size: 13px; letter-spacing: .3em; color: var(--seal); }
.hall__name { align-self: center; writing-mode: vertical-rl; font-weight: 200; font-size: clamp(36px, 3.6vw, 56px); letter-spacing: .35em; line-height: 1.3; }
html[lang="en"] .hall__name { writing-mode: horizontal-tb; letter-spacing: .02em; font-size: clamp(30px, 2.8vw, 44px); }
.hall__kind { font-size: 12px; letter-spacing: .12em; color: var(--dim); margin-bottom: 10px; }
/* 이름을 받은 곳 한 줄: 관마다 짧은 소개 */
.hall__desc { max-width: 30em; margin: 0 0 14px; font-size: 12.5px; line-height: 1.7; letter-spacing: .01em; text-align: center; color: var(--dim); word-break: keep-all; }
.hall.is-open .hall__desc { color: rgba(239, 235, 228, .78); }
/* 위 메뉴·독의 갈래 */
.bar__kind { color: var(--dim); }
.dock__kind { color: inherit; opacity: .7; }
@media (max-width: 1180px) { .bar__kind { display: none; } }
@media (max-width: 1000px) { .prog button span { display: none; } }
@media (max-width: 900px) { .bar__brand span { display: none; } }
.hall__state { font-size: 13px; letter-spacing: .06em; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.hall.is-open .hall__state { color: var(--ink-on); }
.hall__state i { width: 6px; height: 6px; border-radius: 50%; background: var(--seal); }
.hall__go { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; font-size: 13px; letter-spacing: .14em; opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.hall:not(.is-open) { color: var(--dim); }
.hall:not(.is-open) .hall__name { opacity: .55; }
a.hall:hover { border-color: rgba(239, 235, 228, .5); background: rgba(255, 255, 255, .02); }
a.hall:hover::before { opacity: 1.6; }
a.hall:hover .hall__state { opacity: 0; }
a.hall:hover .hall__go { opacity: 1; transform: none; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.2, .7, .1, 1); }
.reveal.is-shown { opacity: 1; transform: none; }

/* 관람 안내와 바닥 */
.visit { padding: 0 var(--gut) clamp(90px, 10vw, 150px); }
.visit h2 { margin: 0 0 26px; font-weight: 200; font-size: clamp(22px, 2vw, 30px); }
.visit dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
.visit dl > div { padding: 22px 24px 0 0; }
.visit dl > div + div { padding-left: 24px; border-left: 1px solid var(--hair); }
.visit dt { font-size: 12px; letter-spacing: .14em; color: var(--dim); margin-bottom: 10px; }
.visit dd { margin: 0; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 30px var(--gut) calc(96px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); font-size: 12px; letter-spacing: .1em; color: var(--dim); }
.foot img { width: 28px; height: 28px; }
.foot p { margin: 0; }
.foot__dir { margin-left: auto !important; }
.foot__card { display: inline-flex; align-items: baseline; gap: 12px; min-height: 44px; padding: 0; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.foot__cardk { font-size: 12px; letter-spacing: .12em; color: var(--ink-on); border-bottom: 1px solid var(--seal); padding-bottom: 2px; }
.foot__card:hover .foot__cardk { color: var(--seal); }
/* 명함 창: 명함 쪽과 같은 바탕색으로 덮고, 다 받으면 명함이 떠오른다 */
.cardbox { position: fixed; inset: 0; z-index: 90; background: #24231F; opacity: 0; transition: opacity .4s ease; }
.cardbox.is-open { opacity: 1; }
.cardbox__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transform: scale(.985); transition: opacity .5s ease .05s, transform .6s cubic-bezier(.2, .7, .1, 1) .05s; }
.cardbox.is-loaded.is-open .cardbox__frame { opacity: 1; transform: none; }
.cardbox__close { position: absolute; z-index: 1; top: calc(16px + env(safe-area-inset-top)); right: var(--gut); display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px;
  border: 1px solid rgba(239, 235, 228, .3); background: rgba(18, 17, 15, .45); color: var(--ink-on); font: inherit; font-size: 12.5px; letter-spacing: .12em; cursor: pointer; transition: background .25s, color .25s; }
.cardbox__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.cardbox__close:hover, .cardbox__close:focus-visible { background: var(--ink-on); color: var(--night); }
.is-card .cursor { display: none; }
html.is-card { overflow: hidden; }
.foot__credit { flex-basis: 100%; font-size: 11px; letter-spacing: .03em; line-height: 1.6; opacity: .8; overflow-wrap: anywhere; }

/* 작은 커서(마우스 화면만) */
.cursor { position: fixed; z-index: 80; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--seal);
  pointer-events: none; opacity: 0; visibility: hidden; transition: width .3s, height .3s, margin .3s, opacity .3s; }
.cursor.is-on { opacity: 1; visibility: visible; }
.cursor.is-big { width: 36px; height: 36px; margin: -18px 0 0 -18px; background: transparent; border: 1px solid var(--seal); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* 휴대폰 */
@media (max-width: 760px) {
  .bar { padding: 16px 18px; }
  .bar__nav { display: none; }
  .bar__brand span { display: none; }  /* 휴대폰은 인장만(정문 현판에 이름이 크게 있음): 관장 명함 단추 자리 */
  .bar__brand { min-width: 44px; min-height: 44px; }
  .bar__card { margin-left: auto; height: 34px; padding: 0 11px 0 10px; letter-spacing: .06em; }
  .bar__card::after { display: none; }
  .bar__lang { margin-left: 4px; }
  .gate { height: 280vh; }
  .door { width: 62vw; top: 42%; }
  .plaque { top: calc(42% + 31vw + 3vh); }
  .plaque__name { font-size: 24px; letter-spacing: .2em; padding-left: .2em; }
  .plaque__hanja { letter-spacing: .4em; }
  .plaque__en { font-size: 11.5px; letter-spacing: .2em; padding-left: .2em; }
  .lines { top: 10%; }
  .line { font-size: 26px; }
  .line--small { font-size: 19px; }
  .halls__head { flex-direction: column; gap: 8px; }
  .doors { grid-template-columns: 1fr; }
  .hall { min-height: 340px; }
  .hall__name { margin: 18px 0; }
  .dock__kind { display: none; }
  .visit dl { grid-template-columns: 1fr; }
  .visit dl > div, .visit dl > div + div { padding: 18px 0 20px; border-left: 0; border-bottom: 1px solid var(--hair); }
  .foot { flex-wrap: wrap; }
  a.hall:active { border-color: rgba(239, 235, 228, .5); }
}
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .bar, .plaque, .hint { opacity: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
html[lang="en"] .plaque__name { letter-spacing: .12em; padding-left: .12em; font-size: clamp(26px, 2.4vw, 38px); }
html[lang="en"] .plaque__en { font-family: var(--sans); text-transform: none; letter-spacing: .3em; }

/* 진행 표시: 오른쪽 가는 선과 네 마디 */
.prog { position: fixed; z-index: 45; right: clamp(14px, 2vw, 30px); top: 50%; transform: translateY(-50%); display: grid; gap: 22px; padding: 6px 0;
  opacity: 0; transition: opacity 1s ease .6s; }
.is-in .prog { opacity: 1; }
.prog__track { position: absolute; right: 3px; top: 10px; bottom: 10px; width: 1px; background: rgba(239, 235, 228, .18); }
.prog__fill { position: absolute; left: 0; top: 0; width: 1px; height: 0; background: var(--seal); }
.prog button { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 4px 0; min-height: 24px; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 12px; letter-spacing: .14em; color: var(--dim); }
.prog button i { order: 2; width: 7px; height: 7px; border-radius: 50%; border: 1px solid rgba(239, 235, 228, .45); background: var(--night); transition: background .4s, border-color .4s; }
.prog button span { opacity: 0; transform: translateX(6px); transition: opacity .4s, transform .4s; white-space: nowrap; }
.prog button.is-on span, .prog:hover button span { opacity: 1; transform: none; }
.prog button.is-on { color: var(--ink-on); }
.prog button.is-on i, .prog button.is-past i { background: var(--seal); border-color: var(--seal); }
@media (max-width: 760px) {
  .prog { right: 8px; gap: 16px; }
  .prog button span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .prog { opacity: 1; } }

/* 아래 독(로비와 세 관): 쪽의 다른 부분처럼 가는 선과 작은 글자로만 만든 낮은 막대. 지금 있는 곳은 붉은 밑줄 */
.dock { position: fixed; z-index: 44; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: stretch; height: 44px; padding: 0 6px;
  background: rgba(18, 17, 15, .62); border: 1px solid rgba(239, 235, 228, .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s, transform .5s ease; }
.is-in .dock { opacity: .9; visibility: visible; }
.is-in .dock.is-moving { opacity: .45; }
.is-in .dock:hover, .is-in .dock:focus-within { opacity: 1; }
.dock__item { position: relative; display: flex; align-items: center; gap: 9px; padding: 0 16px; color: var(--dim);
  font-size: 12.5px; letter-spacing: .08em; line-height: 1; white-space: nowrap; transition: color .25s ease; }
.dock__item::before { content: ""; position: absolute; left: 16px; right: 16px; bottom: 8px; height: 1px; background: var(--ink-on);
  transform: scaleX(0); transition: transform .3s ease; }
a.dock__item:hover, a.dock__item:focus-visible { color: var(--ink-on); }
a.dock__item:hover::before, a.dock__item:focus-visible::before { transform: scaleX(1); }
.dock__item.is-here { color: var(--ink-on); }
.dock__item.is-here::before { background: var(--seal); transform: scaleX(1); }
.dock__item[aria-disabled] { color: rgba(156, 151, 141, .55); cursor: default; }
.dock__glyph svg { display: block; width: 15px; height: 15px; }
.dock__sep { width: 1px; margin: 12px 4px; background: rgba(239, 235, 228, .14); }
.dock__tip { position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%); display: none; padding: 6px 10px; white-space: nowrap;
  font-size: 11.5px; letter-spacing: .06em; line-height: 1.3; color: var(--ink-on); background: rgba(18, 17, 15, .92); border: 1px solid rgba(239, 235, 228, .14); pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .dock__item:hover .dock__tip, .dock__item:focus-visible .dock__tip { display: block; animation: tip .18s ease-out; }
}
@keyframes tip { from { opacity: 0; transform: translate(-50%, 4px); } }
/* 독 위로 올라가는 것들: 작품 라벨, 첫 화면 안내, 바닥글 */
.label { padding-bottom: 100px; }
.hint { bottom: 96px; }
.foot { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
/* 키가 낮은 PC 화면: 인장과 이름판을 조금 작게, 조금 위로 */
@media (min-width: 761px) and (max-height: 820px) {
  .door { width: min(34vh, 44vw); top: 39%; }
  .plaque { top: calc(39% + min(17vh, 22vw) + 3vh); }
}
@media (max-height: 700px) { .hint::after { display: none; } }
@media (max-width: 760px) {
  .dock { height: 54px; padding: 0 4px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .dock__item { flex-direction: column; justify-content: center; gap: 6px; min-width: 60px; padding: 0 10px; font-size: 11px; letter-spacing: .04em; }
  .dock__item::before { left: 50%; right: auto; width: 14px; margin-left: -7px; bottom: 5px; }
  .dock__glyph svg { width: 17px; height: 17px; }
  .dock__sep { margin: 14px 2px; }
  .label { padding-bottom: 96px; }
  .hint { bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) { .dock__item, .cardbox, .cardbox__frame { transition: none; } }
@media (max-width: 760px) and (max-height: 700px) {
  .door { width: 54vw; top: 38%; }
  .plaque { top: calc(38% + 27vw + 3vh); }
}
/* 여러 장면을 건너뛸 때 잠깐 덮는 어둠 */
.veil { position: fixed; inset: 0; z-index: 35; background: var(--night); opacity: 0; pointer-events: none; transition: opacity .55s ease; }
.veil.is-on { opacity: 1; transition-duration: .3s; }
/* 관 카드가 독 자리를 지나갈 때는 독이 잠깐 비켜난다(관 카드 자체가 바로가기이므로) */
.is-in .dock.is-tucked { opacity: 0; visibility: hidden; transform: translate(-50%, 10px); pointer-events: none; }
/* 맨 위로: 오른쪽 아래, 독과 같은 각진 얇은 칸. 맨 위에 있을 때는 숨는다 */
.totop { position: fixed; z-index: 44; right: var(--gut); bottom: calc(16px + env(safe-area-inset-bottom)); height: 44px; display: flex; align-items: center; gap: 7px; padding: 0 14px;
  font: inherit; font-size: 11.5px; letter-spacing: .14em; color: var(--dim); background: rgba(18, 17, 15, .62); border: 1px solid rgba(239, 235, 228, .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .4s ease, visibility .4s, transform .4s ease, color .25s ease; }
.totop svg { display: block; width: 14px; height: 14px; }
.is-in .totop.is-on { opacity: .9; visibility: visible; transform: none; }
.totop:hover, .totop:focus-visible { color: var(--ink-on); opacity: 1; }
@media (max-width: 760px) {
  .totop { right: 12px; bottom: calc(78px + env(safe-area-inset-bottom)); width: 40px; height: 40px; padding: 0; justify-content: center; }
  .totop span { display: none; }
  .label { padding-right: 64px; }
  .totop svg { width: 16px; height: 16px; }
}
