/* 화면 전환은 연습도구에서만 로드한다. 음악 재생·페이지 스크롤 컨테이너는 유지. */
.pt-viewbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 12px 0 0;
  min-height: 48px;
}
.pt-view-title { display: none; font-size: 16px; font-weight: 700; color: #37352f; }
.pt-game-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #dbb780;
  border-radius: 8px;
  background: #fbf0df;
  color: #92400e;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.pt-game-link:hover { background: #f5e3c5; }
.pt-game-link:focus-visible { outline: 3px solid #b45309; outline-offset: 3px; }
.pt-fullscreen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #deded9;
  border-radius: 8px;
  background: #fff;
  color: #37352f;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.pt-fullscreen svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pt-fullscreen:hover { background: #fbf0df; color: #92400e; border-color: #dbb780; }
.pt-fullscreen:focus-visible { outline: 3px solid #b45309; outline-offset: 3px; }
.pt-fullscreen .pt-fullscreen-close { display: none; }
html.pt-immersive body.pt-immersive #sidebar,
html.pt-immersive body.pt-immersive #sidebarOverlay,
html.pt-immersive body.pt-immersive #mobileMenuBtn,
html.pt-immersive body.pt-immersive #mob-bottom-nav,
html.pt-immersive body.pt-immersive #bmMsgFab,
html.pt-immersive body.pt-immersive .bm-foot,
html.pt-immersive body.pt-immersive .pt-head { display: none !important; }
html.pt-immersive,
html.pt-immersive body.pt-immersive { min-width: 0 !important; width: 100% !important; max-width: 100% !important; }
/* body의 overflow-x:hidden이 별도 스크롤 컨테이너를 만들어 가로 화면에서 sticky를 끊지 않게 한다. */
html.pt-immersive:not(.bm-modal-scroll-locked) { overflow-x: hidden !important; overflow-y: auto !important; }
html.pt-immersive body.pt-immersive:not(.bm-modal-scroll-locked) { overflow: visible !important; }
html.pt-immersive body.pt-immersive { padding-bottom: env(safe-area-inset-bottom,0px) !important; background: #f5f5f7; }
html.pt-immersive #app-layout { width: 100% !important; min-width: 0 !important; margin-left: 0 !important; min-height: 100dvh; }
html.pt-immersive #app-layout .pt-wrap {
  box-sizing: border-box;
  max-width: 1280px;
  min-width: 0 !important;
  padding: 0 max(16px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)) !important;
}
html.pt-immersive .pt-viewbar {
  position: sticky;
  top: 0;
  z-index: 25;
  justify-content: space-between;
  min-height: calc(60px + env(safe-area-inset-top,0px));
  margin: 0;
  padding: calc(8px + env(safe-area-inset-top,0px)) 0 8px;
  background: #f5f5f7;
}
html.pt-immersive .pt-view-title { display: block; }
html.pt-immersive .pt-fullscreen { border-color: transparent; background: transparent; color: #6b6a66; }
html.pt-immersive .pt-fullscreen:hover { background: #eaeae6; color: #37352f; }
html.pt-immersive .pt-fullscreen-open { display: none; }
html.pt-immersive .pt-fullscreen-close { display: block; }
html.pt-immersive .pt-tabs {
  position: sticky;
  top: calc(60px + env(safe-area-inset-top,0px));
  z-index: 24;
  margin: 0 0 16px;
  background: #f5f5f7;
}
html.pt-immersive:fullscreen { background: #f5f5f7; overflow-y: auto; }
html.pt-immersive:-webkit-full-screen { background: #f5f5f7; overflow-y: auto; }
@media print { .pt-viewbar { display: none !important; } }
@media (max-width:360px) {
  .pt-fullscreen { font-size:12px; padding-inline:6px; gap:6px; }
}
