/* ───────── 자세히 보기 ───────── */
.sheet { width: min(560px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1.5px solid var(--ink); background: var(--bg); color: var(--ink); overflow-y: auto; }
.sheet[open] { animation: slide .45s var(--ease); }
.sheet::backdrop { background: rgba(0, 0, 0, .45); backdrop-filter: blur(3px); }
@keyframes slide { from { transform: translateX(60px); opacity: 0; } }
.sheet .thumb { border-bottom: 1.5px solid var(--ink); aspect-ratio: 16 / 9; }
.sheet-in { padding: 24px 26px 34px; }
.sheet h2 { font-family: var(--hand); font-size: 46px; line-height: 1.05; }
.sheet .lead { margin-top: 6px; color: var(--muted); }
.sheet .desc { margin-top: 18px; }
.facts { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.facts div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.sheet h4 { margin: 22px 0 8px; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .12em; color: var(--muted); }
.uses li { padding: 6px 0 6px 18px; position: relative; }
.uses li::before { content: ''; position: absolute; left: 2px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); border: 1px solid var(--ink); }
.go-row { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 22px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 600; text-decoration: none; background: var(--card); }
.btn.primary { background: var(--ink); color: var(--bg); box-shadow: 4px 5px 0 var(--tone); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; border-style: dashed; }
.qr { margin-top: 22px; display: flex; gap: 16px; align-items: center; padding: 14px; border: 1px dashed var(--ink); border-radius: 16px; }
.qr-box { width: 112px; height: 112px; background: #fff; border-radius: 8px; padding: 6px; flex: none; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr p { font-size: 14px; } .qr p b { display: block; font-family: var(--hand); font-size: 24px; }
.close { position: fixed; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 20px; }
.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 20px; z-index: 60; padding: 10px 18px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 14px; opacity: 0; pointer-events: none; transition: .3s var(--ease); }
.toast.on { opacity: 1; translate: -50% 0; }

.sheet .thumb img { object-position: top; }

/* 자세히 보기: 화면 여러 장 넘겨 보기 */
.gal { position: relative; border-bottom: 1.5px solid var(--ink); background: var(--tone); }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 16 / 10; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track > * { flex: none; width: 100%; height: 100%; object-fit: cover; object-position: top; scroll-snap-align: start; }
.gal-track > .ph { display: grid; place-items: center; font-size: 72px; }
.gal-nav { position: absolute; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 24px; line-height: 1; font-family: system-ui, sans-serif; }
.gal-nav:hover { background: rgba(0, 0, 0, .8); }
.gal-nav.prev { left: 10px; } .gal-nav.next { right: 10px; }
.gal-count { position: absolute; left: 12px; bottom: 10px; padding: 2px 10px; border-radius: 99px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 14px; font-family: system-ui, sans-serif; }

/* QR 크게 보기 */
.qr { cursor: pointer; transition: background-color .2s; }
.qr:hover, .qr:focus-visible { background: var(--chip, rgba(128, 128, 128, .12)); }
.qr-big { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 3vh 4vw; border: 0; background: #fff; color: #111;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 2vh; cursor: zoom-out; text-align: center; }
.qr-big[open] { display: flex; animation: qr-in .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes qr-in { from { opacity: 0; transform: scale(.94); } }
.calm .qr-big[open] { animation: none; }
.qr-big-name { margin: 0; font-family: var(--disp, var(--hand)); font-weight: var(--disp-w, 700); font-size: clamp(28px, 6vh, 72px); line-height: 1.1; }
.qr-big-code { width: min(70vh, 86vw); aspect-ratio: 1; }
.qr-big-code svg { width: 100%; height: 100%; display: block; }
.qr-big-url { margin: 0; font-size: clamp(16px, 2.6vh, 30px); font-weight: 700; word-break: break-all; }
.qr-big-hint { margin: 0; font-size: 14px; color: #777; }
.qr-big { overflow: hidden; }
