@font-face {
  font-family: "SA Korean Text";
  src: url("/optimized-v1/fonts/sa-korean-text-regular.woff2?v=20260824_001") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "SA Korean Text";
  src: url("/optimized-v1/fonts/sa-korean-text-bold.woff2?v=20260824_001") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}

@font-face {
  font-family: dotum;
  src: url("/optimized-v1/fonts/sa-korean-text-regular.woff2?v=20260824_001") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: dotum;
  src: url("/optimized-v1/fonts/sa-korean-text-bold.woff2?v=20260824_001") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}

@font-face {
  font-family: "돋움";
  src: url("/optimized-v1/fonts/sa-korean-text-regular.woff2?v=20260824_001") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "돋움";
  src: url("/optimized-v1/fonts/sa-korean-text-bold.woff2?v=20260824_001") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}

@font-face {
  font-family: "SA Dotum Original";
  src: url("/optimized-v1/fonts/sa-korean-text-regular.woff2?v=20260824_001") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

/* Keep each restored fixed-width composition intact while fitting narrow screens. */
:root {
  --sa-layout-width: 924px;
}

html:has(body .origin) {
  --sa-layout-width: 1000px;
}

html:has(#sa-beginner-guide) {
  --sa-layout-width: 750px;
}

html:has(#popMap) {
  --sa-layout-width: 670px;
}

html:has(#FAQ) {
  --sa-layout-width: 580px;
}

html:has(.popup-shell) {
  --sa-layout-width: 460px;
}

html body {
  zoom: min(1.5, max(0.25, calc(100vw / var(--sa-layout-width)))) !important;
}

/* Match the final restored footer geometry before the first paint. */
#footer {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

#cjiMainFooter {
  display: block !important;
  clear: both !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html body #SubContainer > .btmleft,
html body #SubContainer > .btmright {
  height: 362px !important;
  background: none !important;
  visibility: hidden !important;
}

html.sa-footer-layout-ready body #SubContainer > .btmleft,
html.sa-footer-layout-ready body #SubContainer > .btmright {
  visibility: visible !important;
}

html body #SubContainer > .btmleft > div,
html body #SubContainer > .btmright > div {
  height: 362px !important;
  bottom: 0 !important;
}

html body #SubContainer > .btmleft > div {
  background-position: 100% calc(100% + 2px) !important;
}

html body #SubContainer > .btmright > div {
  background-position: 460px calc(100% + 2px) !important;
}

html body #divSubContents > .subBgbox {
  background-position: 0 calc(100% + 2px) !important;
}

@font-face {
  font-family: "SA GameIntro Title";
  src: url("/optimized-v1/fonts/Jua-Regular.woff2?v=20260813_001") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: "SA Dotum Original";
  src: url("/optimized-v1/fonts/sa-korean-text-bold.woff2?v=20260824_001") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}

/* Keep viewport fitting in CSS on engines without typed division in zoom. */
@supports (zoom: clamp(.25, tan(atan2(100vw, 924px)), 1.5)) {
  html body { zoom: clamp(.25, tan(atan2(100vw, var(--sa-layout-width))), 1.5) !important; }
}

/* Feather the video's lower right edge where Firefox composites it over the stone. */
@supports (-moz-appearance: none) and (mask-composite: add) {
  #subnavi_div video {
    mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 16px), transparent 100%), linear-gradient(to right, transparent 0, transparent 12px, #000 24px, #000 260px, transparent 290px);
    mask-composite: add;
  }
}
