/* 가게 안 화면(상세 페이지 구조, 2026-11-17). 넓은 창에서 공간을 쓰는 틀: 상단 바 → 표지 → 소개 두 칸 → 체험 무대 → 이전·다음
   값은 altolab 상세 실측(본문 최대 1240·제목 clamp·설명 17px/1.7)을 우리 밤 골목 토큰에 맞춘 것 */
.room { position: absolute; inset: 0; z-index: 40; color: #f3f1e8; opacity: 0; transition: opacity .45s; display: flex; flex-direction: column; --gut: clamp(16px, 3vw, 40px); }
.room[hidden] { display: none; } /* display:flex 가 hidden 을 덮어 투명한 채로 터치를 가로채지 않게 */
.room.on { opacity: 1; }
.room-bg { position: absolute; inset: 0; background-size: cover; background-position: center top; }

.rm-bar { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top) + 10px) var(--gut) 10px; background: linear-gradient(rgba(8,12,20,.75), rgba(8,12,20,0)); }
.room-out, .rm-share { justify-self: start; border: 1px solid rgba(243,241,232,.3); background: rgba(8,12,20,.55); color: #f3f1e8; font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 999px; cursor: pointer; backdrop-filter: blur(6px); white-space: nowrap; }
.rm-share { justify-self: end; }
.rm-pager { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #8b97ad; font-variant-numeric: tabular-nums; }
.rm-pager span { min-width: 4.5em; text-align: center; }
.rm-pager button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: #c9cdd6; font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.rm-pager button:hover { background: rgba(243,241,232,.1); }
.room-out:focus-visible, .rm-share:focus-visible, .rm-pager button:focus-visible, .rm-near a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.room-body { position: relative; z-index: 1; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gut) 48px; }
.room-body > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.room-note { color: #8b97ad; font-size: 13px; margin-top: 6px; }

/* 표지: 가게 사진(뒤 배경)이 위쪽에 보이게 비워 두고, 아래에 큰 제목 */
.rm-hero { min-height: clamp(180px, 34vh, 400px); display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 28px; }
.room-kicker { font-size: 14px; color: var(--accent); letter-spacing: .02em; }
.room-title { font-family: "Black Han Sans", sans-serif; font-weight: 400; font-size: clamp(34px, 5.2vw, 72px); line-height: 1.08; margin: 8px 0 12px; letter-spacing: -.01em; word-break: keep-all;
  text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 50%, transparent), 0 2px 12px rgba(0,0,0,.6); }
.room-hook { color: #e1e4ea; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.6; max-width: 34em; word-break: keep-all; text-shadow: 0 1px 8px rgba(0,0,0,.7); }

/* 소개 두 칸: 왼쪽 수고 칩, 오른쪽 설명(한 줄 40자 안팎) */
.rm-intro { display: grid; gap: 14px; padding: 20px 0 26px; border-top: 1px solid rgba(243,241,232,.12); }
.rm-intro[hidden] { display: none; }
.rm-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.rm-chips li { border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: rgba(8,12,20,.5); border-radius: 999px; padding: 6px 13px; font-size: 13.5px; color: #e6e8ee; }
.rm-about { font-size: 16px; line-height: 1.75; color: #b9bfcb; max-width: 40em; word-break: keep-all; }
.rm-about:empty { display: none; }

/* 체험 무대 */
.room-counter { border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: rgba(8,12,20,.72); border-radius: 14px; padding: 22px 18px; backdrop-filter: blur(10px); font-size: 15px; line-height: 1.55; }
/* 무대는 넓게 쓰는 게 기본. 글 위주로 좁게 읽히는 게 나은 가게만 가운데 720px(단톡방 안내·업로드) */
.room-counter > :where(.ct) { max-width: 720px; margin-left: auto; margin-right: auto; }

/* 이전·다음 가게 */
.rm-near { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(243,241,232,.12); }
.rm-near a { display: flex; flex-direction: column; gap: 4px; color: #f3f1e8; text-decoration: none; min-width: 0; border-radius: 6px; }
.rm-near a:last-child { text-align: right; }
.rm-near span { font-size: 12px; color: #8b97ad; }
.rm-near b { font-size: 16px; font-weight: 600; word-break: keep-all; }
.rm-near a:hover b { color: var(--accent); }

.rm-toast { position: absolute; left: 50%; bottom: 28px; z-index: 5; translate: -50% 0; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 999px; background: rgba(8,12,20,.92); border: 1px solid rgba(243,241,232,.25); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s; overflow-wrap: anywhere; }
.rm-toast.on { opacity: 1; }

@media (max-width: 520px) {
  .rm-share, .room-out { padding: 7px 11px; font-size: 13px; }
  .rm-pager span { min-width: 3.6em; }
}
@media (min-width: 960px) {
  .rm-intro { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 6vw, 96px); padding: 28px 0 36px; }
  .rm-about { font-size: 17px; }
  .room-counter { padding: 34px 40px; }
  .rm-near b { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .room { transition: none; } }
.shot .room { transition: none; }
