/* b113.css — BRIEF113 쌍계사 UI 통합 재디자인(위 지도·설정 동그라미 / 아래 오른쪽 세로 5개 / 아래 왼쪽 채팅 줄). world3d.html 맨 끝에서 읽어 앞의 규칙을 덮는다. */
.b113-ico { width: 26px; height: 26px; object-fit: contain; vertical-align: middle; pointer-events: none; -webkit-user-drag: none; }

/* 위 오른쪽: 지도 · 설정만 동그라미로(☰ · 2D · 낮/밤 · 나가기는 설정 창으로) */
body.b113 .hud-tr #to2d, body.b113 .hud-tr #theme, body.b113 .hud-tr #logout, body.b113 .hud-tr #sh-menu, body.b113 #sh-menu-card { display: none !important; }
body.b113 .hud-tr #set-btn { display: inline-grid !important; } /* social-hub.css가 숨기는 것을 다시 보이게 */
body.b113 .hud-tr .b113-round { width: 44px !important; height: 44px !important; min-width: 0 !important; padding: 0 !important; border-radius: 50% !important; display: inline-grid !important; place-items: center; }
body.b113 .hud-tr .b113-round .lbl { display: none !important; }

/* 아래 오른쪽: 세로 버튼 5개 (코인 · 요사채 = 강조) */
#b113-rail { position: fixed; right: 10px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 70; display: none; flex-direction: column; gap: 8px; align-items: center; }
body.b113 #b113-rail { display: flex; }
.b113-rb { width: 58px; min-height: 58px; border: 1.5px solid rgba(0,0,0,.1); border-radius: 18px; background: rgba(255,250,240,.96); color: #3a3226; box-shadow: 0 3px 10px rgba(0,0,0,.18); display: grid; justify-items: center; align-content: center; gap: 1px; padding: 5px 2px 4px; cursor: pointer; font: 700 10.5px/1.15 system-ui, sans-serif; }
.b113-rb i { display: grid; place-items: center; width: 30px; height: 30px; font-style: normal; }
.b113-rb .b113-ico { width: 28px; height: 28px; }
.b113-rb.hot { border-color: #d4a73a; background: #fff4d6; box-shadow: 0 3px 12px rgba(212,167,58,.45); }
.b113-rb:active { transform: scale(.95); }
/* 옛 아래 줄 단추·점프 단추는 숨김(기능은 세로 버튼·이모트 휠이 대신 누름) */
body.b113 #dock #chat-btn, body.b113 #dock #emote-btn, body.b113 #dock #sh-people, body.b113 #dock #lantern-btn, body.b113 #dock #tea-btn, body.b113 #w3-jump { display: none !important; }

/* 아래 왼쪽: 채팅 줄 [종류 ▼][한마디][보내기] — 늘 보임 */
html body.w3d.b113.b113-chat #chatbar { position: fixed !important; left: 10px !important; right: auto !important; bottom: calc(14px + env(safe-area-inset-bottom)) !important; top: auto !important; transform: none !important; width: auto !important; max-width: 480px; z-index: 71; display: flex !important; flex-wrap: nowrap !important; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 999px; background: rgba(255,250,240,.96); box-shadow: 0 3px 12px rgba(0,0,0,.2); }
body.b113.b113-chat #chatbar .quick, body.b113.b113-chat #chatbar #chat-n, body.b113.b113-chat #chatbar #chat-emo, body.b113.b113-chat #chatbar #chat-log-btn, body.b113.b113-chat #chatbar .kbhint, body.b113 #chatbar #chat-x { display: none !important; }
body.b113 #chatbar #b113-type { flex: 0 0 auto; max-width: 104px; height: 36px; border: 0; border-radius: 999px; background: #ece2cd; color: #3a3226; font: 700 12.5px system-ui, sans-serif; padding: 0 8px; }
body.b113 #chatbar #chat-in { flex: 1 1 auto; min-width: 0; height: 36px; border-radius: 999px; }
body.b113 #chatbar #chat-send { flex: 0 0 auto; height: 36px; border-radius: 999px; background: #6eeac2 !important; padding: 0 14px !important; border: 0; font: 700 13px system-ui, sans-serif; color: #1a3a2a !important; }
body:not(.b113-chat) #chatbar #b113-type { display: none; }

/* BRIEF132: #chatlog(채팅줄 피드)도 #chatbar처럼 fixed+높은 z-index로 띄워야 장소(#place-scene, z-index:20) 안에서도 가려지지 않음 (대표 제보 2026-11-18) */
html body.w3d.b113.b113-chat #chatlog { position: fixed !important; left: 10px !important; right: auto !important; top: auto !important; bottom: calc(14px + env(safe-area-inset-bottom) + 58px) !important; width: min(360px, calc(100vw - 20px)) !important; max-height: 180px !important; z-index: 70 !important; }

/* BRIEF133: '기록(#chat-log-btn)' 버튼을 b113에서 숨기면서, 그 버튼의 aria-expanded="true" 상태에 걸려 채팅줄(#ch-live)이 영원히 안 보이는 가가 있었음(social-hub.css line 392) - b113에서는 그 규칙을 무시하고 항상 보임 (대표 제보 2026-11-18) */
body.b113.ch-live-on:not(.ch-live-hide) #ch-live#ch-live { display: flex !important; }   /* BRIEF152: [대화 접기]를 누르면 접히게(BRIEF133 이 늘 보이게 만들어 접기가 안 먹던 것) */

/* 설정 창 맨 위 '일반' 묶음(언어 · 낮/밤 · 나가기) */
.b113-gen .sv-row .btn { min-height: 34px; }
.b113-lang select { min-height: 34px; }

/* 채팅 텍스트 글로우 페더 효과 */
/* 허브: .plate (머리 위 채팅) */
.plate {
  box-shadow: 
    0 0 8px 2px rgba(0, 0, 0, 0.4),
    0 0 20px 8px rgba(0, 0, 0, 0.2) !important;
}


/* ===== BRIEF134(대표 승인 B안 2026-11-18): 휴대폰 장소(대웅전 등) 화면 겹침 정리 — 자리만 바꾸고 모양은 그대로 =====
 * b113-ui.js 가 body 에 b113-inplace(장소 안) · b113-sheet-open(패널 펼침) · b113-say(펼친 채 말하기) 와 --b113-sheet-h(패널 높이)를 단다. */
#b113-say { display: none; }
@media (max-width: 899px) {
  /* 채팅 줄은 오른쪽 세로 버튼 앞에서 끝남(보내기가 화면 밖 · 이모트 밑으로 가던 문제) */
  html body.w3d.b113.b113-chat #chatbar#chatbar#chatbar { right: 78px !important; width: auto !important; min-width: 0 !important; max-width: none !important; }
  /* 접힘: 맨 아래는 활동 탭 줄 전용 → 채팅 줄 · 세로 버튼은 그 위 */
  html body.w3d.b113.b113-inplace #ps-chat { display: none !important; }
  html body.w3d.b113.b113-inplace #ps-sheet { margin-top: auto !important; }
  html body.w3d.b113.b113-chat.b113-inplace #chatbar { bottom: calc(var(--b113-sheet-h, 61px) + 7px) !important; }
  body.b113.b113-inplace #b113-rail { bottom: calc(var(--b113-sheet-h, 61px) + 7px); }
  /* 대화 줄은 채팅 줄 바로 위 3줄쯤만(캐릭터를 가리지 않게) */
  html body.b113.b113-inplace #sh-wfeed#sh-wfeed { top: auto !important; transform: none !important; bottom: calc(var(--b113-sheet-h, 61px) + 63px) !important; max-width: calc(100vw - 96px) !important; }
  html body.b113.b113-inplace #ch-live#ch-live { max-height: 112px !important; }
  /* 위 둘째 줄: 허브로 + 법당 안내를 나란히 */
  body.b113.b113-inplace #back-hub { left: 12px !important; top: calc(76px + env(safe-area-inset-top)) !important; transform: none !important; }
  body.b113.b113-inplace .hall-chip { top: calc(72px + env(safe-area-inset-top)); max-width: calc(100vw - 24px); overflow: hidden; text-overflow: ellipsis; }
  body.b113.b113-inplace:has(#back-hub) .hall-chip { left: auto; right: 12px; transform: none; max-width: calc(100vw - 114px); }
  /* 펼침(B안): 채팅 줄 · 세로 버튼이 비켜 주고, 대화 줄은 패널 바로 위. 말하려면 말풍선 단추 */
  html body.w3d.b113.b113-chat.b113-sheet-open:not(.b113-say) #chatbar { display: none !important; }
  body.b113.b113-sheet-open #b113-rail { display: none !important; }
  html body.b113.b113-sheet-open:not(.b113-say) #sh-wfeed#sh-wfeed { bottom: calc(var(--b113-sheet-h, 61px) + 7px) !important; max-width: calc(100vw - 80px) !important; }
  html body.w3d.b113.b113-chat.b113-sheet-open.b113-say #chatbar#chatbar#chatbar { right: 66px !important; }
  body.b113.b113-sheet-open #b113-say { display: grid; place-items: center; position: fixed; right: 10px; bottom: calc(var(--b113-sheet-h, 61px) + 7px); z-index: 72; width: 48px; height: 48px; padding: 0; border: 1.5px solid rgba(0,0,0,.1); border-radius: 50%; background: rgba(255,250,240,.96); box-shadow: 0 3px 10px rgba(0,0,0,.2); cursor: pointer; }
  body.b113.b113-sheet-open.b113-say #b113-say { border-color: #2a8a6a; background: #dff5ec; }
}

/* ===== BRIEF135(대표 지시 2026-11-18): 휴대폰 장소 화면 나가기 단추에 글자 "나가기" 표시 — 문 아이콘만으로는 뜻을 모르는 사람이 많음. 좁은 폰은 인원 칩의 얼굴 · "전체 N명"을 줄여 한 줄 유지 ===== */
@media (max-width:560px){
  body.b113 #place-scene .ps-top{flex-wrap:nowrap!important}
  body.b113 #place-scene #ps-exit .lbl{display:inline!important;font-size:14px;font-weight:800;white-space:nowrap}
  body.b113 #place-scene #ps-exit{padding:0 12px 0 10px!important;gap:4px;flex:none!important}
  body.b113 #place-scene .ps-ttl{flex:none}
  body.b113 #place-scene .ps-who{min-width:0;flex:0 1 auto;overflow:hidden;white-space:nowrap}
}
@media (max-width:380px){ body.b113 #place-scene .ps-who .ps-avs{display:none!important} }
@media (max-width:340px){ body.b113 #place-scene .ps-who .ps-all{display:none!important} }

/* ===== BRIEF136(대표 승인 B안 2026-11-18): 휴대폰에서 글을 쓰는 동안 채팅 줄이 길어짐 — '모두에게' 칸이 접히고 줄이 화면 끝까지, 오른쪽 세로 버튼은 그동안만 숨음. 다 쓰고 나오면 원래대로 ===== */
@media (max-width: 899px) {
  html body.w3d.b113.b113-chat #chatbar#chatbar#chatbar { transition: right .2s ease; }
  body.b113 #chatbar #b113-type { transition: max-width .2s ease, padding .2s ease, margin .2s ease, opacity .15s ease; }
  body.b113 #b113-rail { transition: opacity .15s ease; }
  body.b113.b113-typing #chatbar #b113-type { max-width: 0 !important; padding: 0 !important; margin-right: -6px; opacity: 0; pointer-events: none; }
  html body.w3d.b113.b113-chat.b113-typing #chatbar#chatbar#chatbar { right: 10px !important; }
  body.b113.b113-typing #b113-rail { opacity: 0; pointer-events: none; }
}

/* ===== BRIEF152(대표 제보 2026-11-18): 좁은 휴대폰에서 귓속말 중 입력칸이 한 글자 폭으로 줄던 것 — 이름 칩을 짧게, 보내기를 좁게, 글 쓰는 동안은 칩이 아이콘+✕ 로 접히고 채팅 줄이 화면 끝까지(장소 판이 펼쳐져 있어도) ===== */
@media (max-width: 560px) {
  html body.b113 #chatbar #sh-dm-chip { max-width: 34% !important; padding: 0 8px 0 10px; font-size: 12px; gap: 4px; }
  body.b113.sh-dm #chatbar #chat-send { padding: 0 10px !important; }
  body.b113 #chatbar #sh-dm-chip .nm { transition: max-width .2s ease; max-width: 12em; }
  body.b113.sh-dm.b113-typing #chatbar #sh-dm-chip .nm { max-width: 1.35em; text-overflow: clip; }
  html body.w3d.b113.b113-chat.b113-sheet-open.b113-say.b113-typing #chatbar#chatbar#chatbar { right: 10px !important; }
  body.b113.b113-sheet-open.b113-typing #b113-say { opacity: 0; pointer-events: none; }
}

/* ===== 상단바 우드·글로시 게임 HUD 리디자인 (허브 hud.css 와 동일, 대표 지시 2026-11-21) ===== */
html body.b113 .hud-tl { pointer-events: none; align-items: flex-start !important; }
html body.b113 #b113-card {
  pointer-events: auto;
  border: 2.5px solid #7d4318;
  border-radius: 17px;
  padding: 3px;
  background: linear-gradient(180deg, #df9a4f 0%, #c47933 52%, #a65c20 100%);
  box-shadow: 0 3px 0 #69340e, 0 6px 14px rgba(45, 22, 6, .28), inset 0 1.5px 0 rgba(255, 242, 206, .7);
  box-sizing: border-box;
}
html body.b113 .b113-card-in {
  position: relative;
  display: flex;
  align-items: stretch;
  border-radius: 12.5px;
  overflow: hidden;
  height: 66px;
  min-width: 232px;
  max-width: min(296px, calc(100vw - 156px));
  box-sizing: border-box;
}
html body.b113 .b113-card-bg { position: absolute; inset: 0; display: flex; flex-direction: column; pointer-events: none; z-index: 0; }
html body.b113 .b113-card-cream { flex: 0 0 56%; background: linear-gradient(180deg, #fffdf4 0%, #fbf0d3 100%); border-bottom: 1.5px solid #9d561f; box-sizing: border-box; }
html body.b113 .b113-card-wood { flex: 1 1 44%; background: repeating-linear-gradient(180deg, rgba(255, 226, 174, .1) 0 2px, rgba(102, 46, 10, .07) 2px 5px), linear-gradient(180deg, #cd803b 0%, #bc6d29 58%, #a65a1e 100%); box-shadow: inset 0 1px 0 rgba(255, 226, 174, .45); }
html body.b113 #b113-card #me-chip {
  position: relative; z-index: 2; flex: none; align-self: center;
  margin: 0 6px !important; padding: 0 !important; min-width: 0 !important; min-height: 0 !important; height: auto !important;
  background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 50% !important;
}
html body.b113 #b113-card #me-chip .who,
html body.b113 #b113-card #me-chip .badge { display: none !important; }
html body.b113 #b113-card #me-chip .face {
  width: 54px !important; height: 54px !important; border-radius: 50% !important;
  background: radial-gradient(circle at 50% 35%, #ffffff 68%, #f3ead8 100%) !important;
  border: 3.5px solid #d78a34 !important;
  box-shadow: 0 0 0 1.5px #7f4418, 0 2px 5px rgba(55, 26, 6, .32), inset 0 2px 4px rgba(120, 68, 18, .12) !important;
  overflow: hidden !important; box-sizing: border-box !important; display: grid !important; place-items: center !important;
}
html body.b113 #b113-card #me-chip .face img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
html body.b113 .b113-card-r { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; padding-right: 12px; }
html body.b113 .b113-card-top { flex: 0 0 56%; display: flex; align-items: center; justify-content: flex-start; padding-left: 8px; box-sizing: border-box; }
html body.b113 #b113-coin {
  position: relative; display: inline-flex; align-items: center; height: 24px; min-width: 96px; padding: 0 14px 0 26px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, #c69663 0%, #d7ac7c 50%, #e0b98c 100%);
  box-shadow: inset 0 2px 3px rgba(95, 50, 14, .32), 0 1px 0 rgba(255, 255, 255, .8);
  box-sizing: border-box;
}
html body.b113 #b113-coin .cn { position: absolute; left: -8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; filter: drop-shadow(0 1.5px 2px rgba(70, 35, 8, .35)); }
html body.b113 #b113-coin .cn svg { width: 100%; height: 100%; display: block; }
html body.b113 #b113-coin-n {
  color: #fff; font-size: 16.5px; font-weight: 900; line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums;
  text-shadow: -1.1px -1.1px 0 #6e3911, 1.1px -1.1px 0 #6e3911, -1.1px 1.1px 0 #6e3911, 1.1px 1.1px 0 #6e3911, 0 2px 0 #592b0a;
}
html body.b113 #b113-card #sh-where {
  flex: 1 1 44%; display: flex !important; align-items: center !important; justify-content: center !important;
  height: auto !important; min-height: 0 !important; padding: 0 2px 1px !important; margin: 0 !important;
  background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; min-width: 0 !important;
}
html body.b113 #b113-card #sh-where > span:first-child,
html body.b113 #b113-card #sh-where .sh-map { display: none !important; }
html body.b113 #b113-card #sh-pl {
  color: #fff !important; font-size: 13.5px !important; font-weight: 900 !important; line-height: 1.15 !important; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  text-shadow: -1px -1px 0 #68330d, 1px -1px 0 #68330d, -1px 1px 0 #68330d, 1px 1px 0 #68330d, 0 1.5px 0 #4f2307;
}
/* 오른쪽 위: 글로시 3D 스퀘어 버튼 (지도 = 스카이블루, 설정 = 골든앰버) */
html body.b113 .hud-tr .b113-round {
  position: relative !important; width: 60px !important; height: 60px !important; min-width: 0 !important; min-height: 0 !important;
  padding: 0 !important; border-radius: 16px !important; overflow: hidden !important;
  display: inline-grid !important; place-items: center !important; box-sizing: border-box !important;
  transition: transform .1s ease, box-shadow .1s ease;
}
html body.b113 .hud-tr .b113-round::before {
  content: ""; position: absolute; top: 4px; left: 6px; right: 6px; height: 44%; border-radius: 10px 10px 14px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .08) 100%); pointer-events: none; z-index: 0;
}
html body.b113 .hud-tr .b113-round::after {
  content: ""; position: absolute; top: 6px; left: 8px; width: 11px; height: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .82); transform: rotate(-18deg); pointer-events: none; z-index: 2;
}
html body.b113 .hud-tr #b113-map {
  border: 2.5px solid #1b5c88 !important;
  background: linear-gradient(180deg, #b5f0ff 0%, #5dc8f6 44%, #3aa7e5 62%, #2b8ecf 100%) !important;
  box-shadow: 0 3px 0 #154b70, 0 5px 12px rgba(15, 50, 80, .28), inset 0 0 0 2.5px rgba(205, 245, 255, .48), inset 0 2px 0 rgba(255, 255, 255, .82), inset 0 -3px 2px rgba(16, 78, 128, .35) !important;
}
html body.b113 .hud-tr #set-btn {
  border: 2.5px solid #7c4411 !important;
  background: linear-gradient(180deg, #fff1a3 0%, #ffcf56 44%, #f4a826 62%, #da8215 100%) !important;
  box-shadow: 0 3px 0 #62340a, 0 5px 12px rgba(80, 40, 5, .28), inset 0 0 0 2.5px rgba(255, 244, 184, .5), inset 0 2px 0 rgba(255, 252, 224, .85), inset 0 -3px 2px rgba(150, 74, 8, .38) !important;
}
html body.b113 .hud-tr .b113-round:active { transform: translateY(2px) scale(.96); }
html body.b113 .hud-tr .b113-round > span { position: relative; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; }
html body.b113 .hud-tr .b113-round svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1.5px 1.5px rgba(0, 0, 0, .18)); }

@media (max-width: 700px) {
  html body.b113 #b113-card { border-width: 2px; border-radius: 15px; padding: 2.5px; }
  html body.b113 .b113-card-in { border-radius: 11.5px; height: 54px; min-width: 184px; max-width: calc(100vw - 122px); }
  html body.b113 #b113-card #me-chip .face { width: 45px !important; height: 45px !important; border-width: 3px !important; }
  html body.b113 .b113-card-r { padding-right: 10px; }
  html body.b113 .b113-card-top { padding-left: 7px; }
  html body.b113 #b113-coin { height: 21px; min-width: 78px; padding: 0 11px 0 22px; }
  html body.b113 #b113-coin .cn { width: 27px; height: 27px; left: -6px; }
  html body.b113 #b113-coin-n { font-size: 14px; }
  html body.b113 #b113-card #sh-pl { font-size: 11.5px !important; }
  html body.b113 .hud-tr .b113-round { width: 50px !important; height: 50px !important; border-radius: 14px !important; border-width: 2px !important; }
  html body.b113 .hud-tr .b113-round > span { width: 34px; height: 34px; }
}
@media (max-width: 380px) {
  html body.b113 .b113-card-in { height: 50px; min-width: 162px; max-width: calc(100vw - 110px); }
  html body.b113 #b113-card #me-chip .face { width: 41px !important; height: 41px !important; }
  html body.b113 .hud-tr .b113-round { width: 42px !important; height: 42px !important; border-radius: 12px !important; }
  html body.b113 .hud-tr .b113-round > span { width: 29px; height: 29px; }
}

/* ===== 쌍계사(world3d) 소원 연등 플로팅 버튼 (오른쪽 중간, 허브와 동일) ===== */
#b113-rail #b113-lantern.b113-lanfloat {
  position: fixed !important;
  right: 12px !important;
  top: 46% !important;
  bottom: auto !important;
  left: auto !important;
  transform: translateY(-50%);
  width: 76px;
  height: 76px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  z-index: 71;
  transition: transform .16s ease, filter .16s ease;
}
#b113-rail #b113-lantern.b113-lanfloat:active { transform: translateY(-50%) scale(.93); }
#b113-rail #b113-lantern.b113-lanfloat i {
  width: 76px;
  height: 76px;
  filter: drop-shadow(0 0 12px rgba(255, 214, 96, .58)) drop-shadow(0 5px 8px rgba(72, 34, 6, .28));
}
#b113-rail #b113-lantern.b113-lanfloat i svg { width: 100%; height: 100%; display: block; }
#b113-rail #b113-lantern.b113-lanfloat > span { display: none !important; }
#b113-rail #b113-lantern .b113-lancnt {
  position: absolute;
  top: -1px;
  right: -3px;
  min-width: 34px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: linear-gradient(180deg, #cf833c 0%, #b36624 100%);
  border: 2.2px solid #e6a763;
  box-shadow: 0 0 0 1.4px #753b10, 0 2.5px 0 #62300b, 0 4px 8px rgba(45, 20, 4, .34);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1.5px 0 #5f2d0a;
}
@media (max-width: 700px) {
  #b113-rail #b113-lantern.b113-lanfloat { right: 8px !important; top: 45% !important; width: 64px; height: 64px; }
  #b113-rail #b113-lantern.b113-lanfloat i { width: 64px; height: 64px; }
  #b113-rail #b113-lantern .b113-lancnt { top: -2px; right: -2px; min-width: 28px; height: 21px; padding: 0 6px; border-width: 2px; font-size: 12.5px; }
}

/* ===== 요사 위 황금 복주머니 버튼 + 모달 (대표 지시 2026-11-21) ===== */
#b113-rail #b113-pouch.b113-pouch {
  position: relative;
  background: linear-gradient(180deg, #ffeb7c 0%, #fcb926 52%, #e68c0f 100%);
  border: 2.2px solid #7e410d;
  border-radius: 16px;
  box-shadow: 0 3px 0 #70390a, 0 5px 10px rgba(70, 32, 4, .32), inset 0 2px 0 rgba(255, 255, 224, .82);
  overflow: visible;
  gap: 0;
  padding: 2px 2px 3px;
}
#b113-rail #b113-pouch.b113-pouch i { width: 34px; height: 34px; display: grid; place-items: center; }
#b113-rail #b113-pouch.b113-pouch i svg { width: 100%; height: 100%; display: block; }
#b113-rail #b113-pouch.b113-pouch span { color: #fff; font-size: 11px; font-weight: 900; text-shadow: -1.1px -1.1px 0 #6e370a, 1.1px -1.1px 0 #6e370a, -1.1px 1.1px 0 #6e370a, 1.1px 1.1px 0 #6e370a; }
#b113-rail #b113-pouch .b113-pouchcnt {
  position: absolute; top: -7px; right: -7px; min-width: 26px; height: 20px; padding: 0 5px;
  border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  background: linear-gradient(180deg, #ff705c 0%, #e03421 58%, #bf2212 100%);
  border: 2px solid #8a1b0e; box-shadow: 0 2px 0 #6e1309, inset 0 1.5px 0 rgba(255, 224, 214, .75);
  color: #fff; font-size: 10.5px; font-weight: 900; text-shadow: 0 1px 0 #70140a;
}
.b113-pch-ov { position: fixed; inset: 0; z-index: 9550; display: grid; place-items: center; padding: 16px; background: rgba(20,14,8,.54); }
.b113-pch-ov * { box-sizing: border-box; }
.b113-pch-card { position: relative; width: min(352px, 92vw); padding: 0 12px 13px; border-radius: 26px 26px 24px 24px; background: transparent; filter: drop-shadow(0 16px 34px rgba(16,7,1,.52)); }
.b113-pch-frame { position: absolute; inset: -11px 0 0 0; width: 100%; height: calc(100% + 11px); pointer-events: none; z-index: 0; }
.b113-pch-hd, .b113-pch-body, .b113-pch-cta { position: relative; z-index: 1; }
.b113-pch-hd { height: 52px; display: flex; align-items: center; justify-content: center; padding: 2px 34px 0; }
.b113-pch-hd h2 { margin: 0; color: #fffdf5; font-size: 19px; font-weight: 900; text-shadow: -1.4px -1.4px 0 #5b2808, 1.4px -1.4px 0 #5b2808, -1.4px 1.4px 0 #5b2808, 1.4px 1.4px 0 #5b2808; }
.b113-pch-x { position: absolute; top: 2px; right: 4px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid #8a1d10; background: linear-gradient(180deg,#ff8d7a 0%,#e94932 54%,#c22614 100%); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 0 #7b170b; }
.b113-pch-x svg { width: 19px; height: 19px; }
.b113-pch-body { padding: 15px 12px 14px; border-radius: 13px; background: linear-gradient(180deg,#fdf4df 0%,#f7ebd0 100%); border: 2px solid #84481c; }
.b113-pch-gh { display: flex; justify-content: space-between; margin: 0 4px 8px; font-size: 13.5px; font-weight: 900; color: #4f3117; }
.b113-pch-tr { position: relative; height: 31px; padding: 4.5px; border-radius: 999px; background: linear-gradient(180deg,#5e3112 0%,#7d451d 100%); border: 3px solid #a96730; margin-bottom: 12px; }
.b113-pch-fl { height: 100%; border-radius: 999px; background: linear-gradient(180deg,#5cf8a8 0%,#16cb6c 52%,#08974b 100%); }
.b113-pch-tr span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 13.5px; font-weight: 900; text-shadow: 0 1.4px 2.5px rgba(26,11,2,.85); }
.b113-pch-div { height: 1.5px; margin: 0 2px 13px; background: linear-gradient(90deg,rgba(168,122,72,.05),rgba(168,122,72,.32) 20%,rgba(168,122,72,.32) 80%,rgba(168,122,72,.05)); }
.b113-pch-gr { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 13px; }
.b113-pch-it { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 15px 6px 10px; min-height: 168px; border-radius: 16px; border: 2px solid #8a562a; background: linear-gradient(180deg,#faf0dc 0%,#ede0c4 100%); box-shadow: inset 0 0 0 2px rgba(255,252,240,.82), 0 3px 0 #c9a67a; cursor: pointer; font: inherit; }
.b113-pch-it.open { border: 2.2px solid #1ca65b; background: linear-gradient(180deg,#ebfff4 0%,#cef9e1 100%); box-shadow: 0 0 0 3.5px rgba(158,250,200,.78), 0 0 16px rgba(48,224,130,.62); }
.b113-pch-it .lk { position: absolute; top: -10px; right: -3px; width: 24px; height: 27px; display: grid; place-items: center; }
.b113-pch-it .lk svg { width: 100%; height: 100%; }
.b113-pch-it .ico { width: 66px; height: 66px; display: grid; place-items: center; }
.b113-pch-it .ico img { width: 100%; height: 100%; object-fit: contain; display: block; }
.b113-pch-it .nm { margin: 7px 0 8px; font-size: 13px; font-weight: 900; color: #3d220e; white-space: nowrap; }
.b113-pch-it .pl { width: 100%; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 11.8px; font-weight: 900; color: #fff; background: linear-gradient(180deg,#b38055 0%,#94633c 100%); border: 1.4px solid #794e2c; }
.b113-pch-it.open .pl { border-radius: 999px; background: linear-gradient(180deg,#98f848 0%,#42cc19 54%,#249e0a 100%); border: 2px solid #1b7809; box-shadow: 0 2.5px 0 #166008; }
.b113-pch-nt { padding: 10px 12px; border-radius: 13px; background: linear-gradient(180deg,#f8e2a5 0%,#efd085 100%); border: 1.5px solid #dfba64; text-align: center; }
.b113-pch-nt b { display: block; font-size: 13px; font-weight: 900; color: #a65c14; margin-bottom: 2px; }
.b113-pch-nt p { margin: 0; font-size: 12.5px; font-weight: 800; color: #4a2a10; }
.b113-pch-cta { margin-top: 11px; width: 100%; height: 50px; border-radius: 15px; border: 2.5px solid #096437; background: linear-gradient(180deg,#35dc8a 0%,#10b666 54%,#08924f 100%); color: #fff; font: inherit; font-size: 17px; font-weight: 900; cursor: pointer; box-shadow: 0 4px 0 #07532d; text-shadow: 0 1.5px 0 #08542e; }
.b113-pch-cta.done { background: linear-gradient(180deg,#52c68c 0%,#2c9662 100%); }
