@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

@font-face {
  font-family: "Ria Sans";
  src:
    local("Ria Sans Bold"),
    local("RiaSans-Bold"),
    url("./assets/fonts/RiaSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "KBL Jump TTF";
  src:
    local("KBLJump EB Extended"),
    local("KBLJump_EB_Extended"),
    url("./assets/fonts/KBLJump_EB_Extended.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "A2Z";
  src:
    local("A2Z"),
    local("A2Z Regular"),
    url("./assets/fonts/에이투지체-4Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ========================================
  폰트 참조 목록
  - Pretendard (CDN import)
  - Ria Sans (RiaSans-Bold.ttf)
  - KBL Jump TTF (KBLJump_EB_Extended.ttf)
  - A2Z (에이투지체-4Regular.ttf)
  - 폰트 파일 경로: ./assets/fonts/
======================================== */

:root {
  --font-a2z: "A2Z", "Pretendard", sans-serif;
  --font-ria: "Ria Sans", "Pretendard", sans-serif;
  --font-kbl: "KBL Jump TTF", "Pretendard", sans-serif;
  --font-base: "Pretendard", sans-serif;

  --asset-city: url("https://www.figma.com/api/mcp/asset/b699b7c5-9e1e-4bdf-bbcc-216960e6698b");
  --asset-e1: url("https://www.figma.com/api/mcp/asset/982cc105-9299-42f2-add0-93b4940f8830");
  --asset-e2: url("https://www.figma.com/api/mcp/asset/05dc1e69-f763-4e26-9724-9e05a0b19dd3");
  --asset-e3: url("https://www.figma.com/api/mcp/asset/61375a3a-99c3-4d03-aa72-570bccf94556");
  --asset-e4: url("https://www.figma.com/api/mcp/asset/7c501b00-908d-4432-b6e1-67b8e80d3778");
  --asset-e5: url("https://www.figma.com/api/mcp/asset/f016ae42-b7ac-4b28-be3a-72c8db61d020");
  --asset-result-home-icon: url("https://www.figma.com/api/mcp/asset/64820536-6733-42df-9e25-6ef8d80a7db3");
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #ebf5ff;
  font-family: var(--font-base);
}

/* ========================================
  공통 영역: 스테이지 / 레이아웃 / 배경
======================================== */

.l-viewport {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
}

.l-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  transform-origin: center center;
  background: #ebf5ff;
}

.c-bg-layer,
.s-flow-layer {
  position: absolute;
  inset: 0;
}

.c-bg-layer {
  pointer-events: none;
  isolation: isolate;
}

.c-bg {
  position: absolute;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.c-bg--top-gradient {
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-image: linear-gradient(180deg, #8fdcff 0%, #ebf5ff 100%);
}

.c-bg--bottom-gradient {
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-image: linear-gradient(180deg, #ebf5ff 0%, #56acff 100%);
}

.c-bg--side-left {
  left: 0;
  top: 0;
  width: 27.777778vw;
  height: 100vh;
  background-image: linear-gradient(90deg, rgba(97, 161, 198, 0.2) 0%, rgba(153, 209, 241, 0) 100%);
}

.c-bg--side-right {
  left: 72.222222vw;
  top: 0;
  width: 27.777778vw;
  height: 100vh;
  transform: rotate(180deg);
  background-image: linear-gradient(90deg, rgba(97, 161, 198, 0.2) 0%, rgba(153, 209, 241, 0) 100%);
}

.c-bg--ellipse-1 {
  left: -48.888889vw;
  top: -19.444444vw;
  width: 90.046296vw;
  height: 90.046296vw;
  background-image: var(--asset-e1);
}

.c-bg--ellipse-2 {
  left: 39.490741vw;
  top: -25.601852vw;
  width: 112.083333vw;
  height: 112.083333vw;
  background-image: var(--asset-e2);
}

.c-bg--ellipse-3 {
  left: 23.888889vw;
  top: 103.37963vw;
  width: 124.907407vw;
  height: 124.907407vw;
  background-image: var(--asset-e3);
}

.c-bg--ellipse-4 {
  left: -21.481481vw;
  top: -8.37963vw;
  width: 142.083333vw;
  height: 72.407407vw;
  background-image: var(--asset-e4);
}

.c-bg--ellipse-5 {
  left: 11.111111vw;
  top: 47.962963vw;
  width: 77.777778vw;
  height: 103.981481vw;
  background-image: var(--asset-e5);
}

.c-bg--city {
  width: 116vw;
  height: 100vh;
  opacity: 0.3;
  background-image: var(--asset-city);
  background-size: 100% 100%;
}

.c-eclipse {
  position: absolute;
  border-radius: 50%;
  --e-tone: 0.55;
  border: 0.046296vw solid rgba(255, 255, 255, calc(0.1 + (0.15 * var(--e-tone))));
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(242, 242, 242, calc(0.1 + (0.2 * var(--e-tone)))) 0%,
    rgba(255, 255, 255, calc(0.02 + (0.08 * var(--e-tone)))) 100%
  );
  backdrop-filter: blur(0.092593vw);
  will-change: transform;
}

.c-eclipse--6 {
  left: -12.222222vw;
  top: 9.212963vw;
  width: 46.435185vw;
  height: 46.435185vw;
}

.c-eclipse--7 {
  left: 79.814815vw;
  top: 121.62037vw;
  width: 29.074074vw;
  height: 29.074074vw;
}

.c-eclipse--8 {
  left: 74.444444vw;
  top: 34.675926vw;
  width: 17.083333vw;
  height: 17.083333vw;
}

.c-eclipse--9 {
  left: 14.814815vw;
  top: 103.935185vw;
  width: 37.638889vw;
  height: 37.638889vw;
}

.c-eclipse--10 {
  left: 8.37963vw;
  top: 81.574074vw;
  width: 4.907407vw;
  height: 4.907407vw;
}

.c-eclipse--11 {
  left: 67.037037vw;
  top: 122.777778vw;
  width: 4.907407vw;
  height: 4.907407vw;
}

.c-eclipse--12 {
  left: 70.925926vw;
  top: 8.842593vw;
  width: 23.796296vw;
  height: 23.796296vw;
}

.c-footer {
    position: absolute;
    bottom: 0;
}

/* ========================================
  섹션 영역: 플로우 화면 기본
======================================== */

.s-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.s-screen.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.s-layout {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
      justify-content: center;
}

.s-home-button {
  position: absolute;
  bottom: 18.28vw;
  width: 8.8vw;
  height: 8.8vw;
  border-radius: 4.63vw;
  background: rgba(148, 163, 184, 0.4);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.s-home-icon {
  width: 4.17vw;
  height: 4.17vw;
  background-image: var(--asset-result-home-icon);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  text-indent: -9999px;
  overflow: hidden;
}

/* ========================================
  섹션 영역: 결과 2 화면
======================================== */
.result2-variants {
  width: 46.85vw;
  display: flex;
  flex-direction: column;
  align-items: center;

}

.result2-variant {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: center;
}

.result2-variant.is-active {
  display: flex;
}

.result2-qr-group{
    display: flex;
    align-items: center;
    gap: 1.85vw;
    margin-top: 1.85vw;
}

.result2-qr-download, .result2-qr-homepage{
    display: flex;
    flex-direction: column;
    gap: 1.38vw;
    border-radius: 4.62vw;
    background: rgba(255, 255, 255, 0.50);
    padding: 1.85vw 4.62vw;
    animation: fadeOutBlur 2s forwards;
    width: 22.5vw;
    font-family: var(--font-a2z);
    font-size: 1.62vw;
    text-align: center;
    font-weight: 600;
    color: #475569;
    line-height: 140%;
    letter-spacing: -0.7px;
    align-items: center;
}

.result2-qr-icon{
    width: 9.25vw;
}

.is-active .result2-qr-download, .is-active .result2-qr-homepage{
    animation: fadeInBlur 2s forwards;
}

/* 모자이크 관련 */

.program-card {
    border-radius: 2.77vw;
    overflow: hidden;
}

.mosaic_grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(15, 1fr);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
    --mosaic-gradient: linear-gradient(189deg, rgba(76, 96, 219, 0.50) 4.33%, rgba(52, 155, 254, 0.00) 49.2%, rgba(99, 255, 141, 0.50) 94.93%), #349bfe;
}
.mosaic-tile {
    opacity: 0;
    background: var(--mosaic-gradient);
    background-repeat: no-repeat;
    transition: opacity 0.18s ease;
}

/* 모자이크 관련 */


.save{
  margin-top: 3.7vw;
  display: flex;
  width: 46.29vw;
  height: 7.87vw;
  padding: 1.85vw 3.7vw;
  justify-content: center;
  align-items: center;
  border-radius: 41.66vw;
  background: linear-gradient(90deg, #69DCD0 0%, #349BFE 34.64%, #349BFE 61.06%, var(--Color-Blue_500, #005CE5) 100%);
  color: #FFF;
  text-align: center;
  font-family: var(--font-ria);
  font-size: 3.24vw;
  font-weight: 700;
  line-height: 100%;
}