/* SCOREBOOK_IFRAME_SHELL_V12_2 */
.scorebook-iframe-shell {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 720px;
  margin: 0;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.scorebook-content-frame {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 720px;
  height: 720px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  transition: opacity .16s ease;
}

.scorebook-iframe-shell.is-loading .scorebook-content-frame {
  opacity: .32;
  pointer-events: none;
}

.scorebook-iframe-loading {
  position: absolute;
  z-index: 3;
  inset: 20px 0 auto;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  color: #31546e;
  font-size: 12px;
  pointer-events: none;
}

.scorebook-iframe-shell.is-loading .scorebook-iframe-loading {
  display: flex;
}

.scorebook-iframe-loading span {
  width: 16px;
  height: 16px;
  border: 2px solid #c9dce9;
  border-top-color: #087fc7;
  border-radius: 50%;
  animation: scorebook-frame-spin-v12 .7s linear infinite;
}

@keyframes scorebook-frame-spin-v12 {
  to { transform: rotate(360deg); }
}

html.scorebook-iframe-embed,
html.scorebook-iframe-embed body,
body.scorebook-iframe-embed {
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  overflow-x: hidden !important;
}

.scorebook-embed-document {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 1px;
  margin: 0;
  padding: 0;
  background: transparent;
}

/* Early-return embed mode normally prevents these elements from being emitted.
 * These selectors are a safe fallback for legacy pages that bypass theme head.php.
 */
html.scorebook-iframe-embed .utility-bar,
html.scorebook-iframe-embed .site-header,
html.scorebook-iframe-embed .global-nav,
html.scorebook-iframe-embed .classic-left-rail,
html.scorebook-iframe-embed .classic-right-rail,
html.scorebook-iframe-embed .site-footer,
html.scorebook-iframe-embed .global-chat-launch,
html.scorebook-iframe-embed .global-chat-dock {
  display: none !important;
}

html.scorebook-iframe-embed .classic-portal-layout {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html.scorebook-iframe-embed .classic-center-stage,
html.scorebook-iframe-embed #container,
html.scorebook-iframe-embed #content,
html.scorebook-iframe-embed #container_wr {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (max-width: 920px) {
  .scorebook-iframe-shell,
  .scorebook-content-frame {
    min-height: 620px;
  }
}


/* V12.2: the existing home page is the outer shell. Only route content is hidden. */
[data-scorebook-shell-source-hidden="1"] { display: none !important; }
html.scorebook-shell-active .classic-center-stage > .scorebook-iframe-shell {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}
html.scorebook-shell-active body { overflow-x: hidden; }

/* SCOREBOOK_IFRAME_SHELL_SCROLL_STABILITY_CSS_V12_3 */
html.scorebook-shell-active {
  scroll-behavior: auto !important;
}

html.scorebook-shell-active .scorebook-iframe-shell,
html.scorebook-shell-active .scorebook-content-frame,
html.scorebook-shell-active [data-scorebook-frame-loading] {
  overflow-anchor: none !important;
}

/* SCOREBOOK_IFRAME_MENU_ROUTE_SYNC_CSS_V12_4
 * 메뉴 활성 표시는 기존 테마의 active/on/current 클래스를 그대로 사용한다.
 */
