@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  --sf-bg: #111111;
  --sf-point: #f2b824;
  --sf-white: #ffffff;
  --font-primary: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Impact', 'Arial Black', sans-serif;
}

body {
  font-family: var(--font-primary);
  background: var(--sf-bg);
  color: var(--sf-white);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  margin: 0;
  position: relative;
}

/* ========== Test Screen Common ========== */
.test-screen {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1920px;
  height: 970px;
  display: none;
  overflow: hidden;
}

.test-screen.active {
  display: block;
}

.test-screen__bg {
  position: absolute;
  top: -181px;
  left: 50%;
  transform: translateX(-50%);
  width: 2310px;
  height: 1272px;
  object-fit: cover;
  z-index: 0;
}

.test-screen__bg--dim {
  top: 0;
  left: 0;
  transform: none;
  width: 1920px;
  height: 970px;
  object-fit: cover;
  filter: brightness(0.55);
}

/* ========== Screen 1: Start ========== */
.test-screen--start {
  background-image:
    url('/Content/Landing/assets/images/test_start_fog_02.png'),
    url('/Content/Landing/assets/images/test_start_fog_01.png'),
    url('/Content/Landing/assets/images/test_start_bg.png');
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position:
    center -44px,
    center 119px,
    center -181px;
  background-size:
    1950px 1300px,
    1950px 1300px,
    2310px 1272px;
}

.test-start {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.test-start__logo {
  width: 350px;
  height: 147px;
  object-fit: contain;
  margin-bottom: 30px;
}

.test-start__subtitle {
  font-size: 65px;
  font-weight: 400;
  letter-spacing: -1.95px;
  margin-bottom: 5px;
}

.test-start__title {
  font-size: 65px;
  font-weight: 800;
  color: var(--sf-point);
  margin-bottom: 20px;
}

.test-start__desc {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 50px;
}

.test-start__btn {
  font-family: var(--font-primary);
  font-size: 45px;
  font-weight: 800;
  color: var(--sf-bg);
  background: var(--sf-point);
  border: none;
  border-radius: 1000px;
  padding: 32px 100px;
  cursor: pointer;
  animation: pulseGlow 2s ease-in-out infinite;
  transition: transform 0.2s;
}

.test-start__btn:hover {
  transform: scale(1.05);
}

/* ========== Screen 2: Question ========== */
.test-question {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 84px;
}

.test-question__char {
  position: absolute;
  left: 28px;
  top: 35px;
  width: 588px;
  height: 1175px;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}

.test-question__number {
  font-family: var(--font-display);
  font-size: 130px;
  letter-spacing: 1.3px;
  line-height: 1;
  margin-bottom: 20px;
}

.test-question__text {
  font-size: 55px;
  font-weight: 400;
  letter-spacing: -1.65px;
  margin-bottom: 5px;
}

.test-question__highlight {
  font-size: 65px;
  font-weight: 800;
  color: var(--sf-point);
  letter-spacing: -1.95px;
  margin-bottom: 40px;
}

.test-question__options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 950px;
}

@media (min-width: 1101px) {
  .test-screen {
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .test-screen--start .test-start {
    min-height: 970px;
    box-sizing: border-box;
  }

  .test-screen--question {
    min-height: 970px;
  }

  .test-question {
    min-height: 970px;
    padding-bottom: 64px;
    box-sizing: border-box;
  }

  .test-question__options {
    padding-bottom: 24px;
  }

  .test-screen--result {
    min-height: 970px;
  }

  .test-screen--result::before {
    content: '';
    display: block;
    height: 970px;
    pointer-events: none;
  }
}

.test-option {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 86px;
  padding: 25px 60px;
  border: 1px solid var(--sf-white);
  border-radius: 100px;
  font-size: 30px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
  width: 100%;
  text-align: center;
  background: transparent;
  color: var(--sf-white);
}

.test-option:hover {
  background: var(--sf-point);
  border-color: var(--sf-point);
  color: var(--sf-bg);
}

/* ========== Screen 3: Result ========== */
.test-screen--result {
  background: rgba(17, 17, 17, 0.07);
}

.test-result-layer {
  position: absolute;
  pointer-events: none;
}

.test-result-layer--bg {
  left: 45.83%;
  top: -154px;
  width: 2122px;
  height: 1194px;
  transform: translateX(-50%);
  background:
    linear-gradient(270deg, rgba(0, 0, 0, 0.62) 25.14%, rgba(102, 102, 102, 0.06) 106.34%),
    url('/Content/Landing/assets/images/test_result_bg.png') lightgray 50% / cover no-repeat;
  filter: blur(1px);
  z-index: 1;
}

.test-result-layer--fog-1 {
  left: calc(45.83% + 16px);
  top: 176px;
  width: 2002px;
  height: 1334px;
  transform: translateX(-50%);
  background: url('/Content/Landing/assets/images/test_result_fog_01.png') center 56% / cover no-repeat;
  opacity: 0.4;
  z-index: 2;
}

.test-result-layer--fog-2 {
  left: calc(45.83% + 16px);
  top: 245px;
  width: 2002px;
  height: 1334px;
  transform: translateX(-50%);
  background: url('/Content/Landing/assets/images/test_result_fog_02.png') center 72% / cover no-repeat;
  opacity: 0.33;
  z-index: 3;
}

.test-screen--result::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(
    180deg,
    rgba(17, 17, 17, 0) 0%,
    rgba(17, 17, 17, 0.34) 52%,
    rgba(17, 17, 17, 0.62) 100%
  );
  z-index: 4;
  pointer-events: none;
}

.test-result__char {
  position: absolute;
  left: 214px;
  top: 84px;
  width: 760px;
  height: auto;
  object-fit: contain;
  opacity: 0.82;
  z-index: 5;
  filter: drop-shadow(-15px 4px 25px rgba(0, 0, 0, 0.25));
}

.test-result {
  position: absolute;
  left: calc(41.67% + 129px);
  top: 157px;
  z-index: 10;
  width: 635px;
}

.test-result__card {
  display: block;
}

.test-result__header {
  margin-bottom: 28px;
}

.test-result__subtitle {
  font-size: 45px;
  font-weight: 400;
  letter-spacing: -1.35px;
  line-height: 1.12;
}

.test-result__title {
  font-size: 65px;
  font-weight: 800;
  color: var(--sf-point);
  letter-spacing: -1.95px;
  line-height: 1.12;
}

.test-result__quote {
  font-size: 35px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 22px;
}

.test-result__desc {
  font-size: 30px;
  font-weight: 300;
  line-height: 45px;
  margin-bottom: 24px;
  width: 635px;
}

.test-result__tags {
  display: flex;
  align-items: center;
  gap: 56px;
  margin-bottom: 26px;
}

.test-result__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 600;
  line-height: 45px;
}

.test-result__tag-icon {
  width: 25px;
  height: 25px;
  object-fit: contain;
  display: block;
}

.test-result__tag-text {
  white-space: nowrap;
}

.test-result__buttons {
  display: grid;
  grid-template-columns: 220px 254px;
  grid-template-areas:
    'share share'
    'retry copy';
  column-gap: 13px;
  row-gap: 11px;
  width: 487px;
}

.test-result__btn {
  height: 65px;
  border-radius: 1000px;
  font-family: var(--font-primary);
  font-size: 25px;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s,
    filter 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 28px;
  white-space: nowrap;
  position: relative;
  z-index: 12;
  line-height: 1;
}

.test-result__btn--retry {
  grid-area: retry;
  border: 3px solid #bcbcbc;
  color: #bcbcbc;
  background: rgba(17, 17, 17, 0.9);
  width: 220px;
  font-weight: 800;
  opacity: 0.9;
}

.test-result__btn--retry:hover {
  border-color: var(--sf-white);
  color: var(--sf-white);
  background: rgba(17, 17, 17, 0.95);
}

.test-result__btn--share {
  grid-area: share;
  background: var(--sf-point);
  color: var(--sf-bg);
  border: none;
  width: 487px;
  font-weight: 800;
}

.test-result__btn--share:hover {
  filter: brightness(0.96);
}

.test-result__btn--copy {
  grid-area: copy;
  background: #4a4036;
  border: none;
  color: var(--sf-white);
  width: 254px;
  font-weight: 600;
  opacity: 0.9;
}

.test-result__btn--copy:hover {
  filter: brightness(1.07);
}

.test-result__btn::before {
  content: '';
  width: 25px;
  height: 25px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex: 0 0 25px;
}

.test-result__btn--share::before {
  background-image: url('/Content/Landing/assets/icons/result/kakao-talk.svg');
}

.test-result__btn--retry::before {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  background-image: url('/Content/Landing/assets/icons/result/retry.svg');
}

.test-result__btn--copy::before {
  background-image: url('/Content/Landing/assets/icons/result/copy-link.svg');
}

@media (max-width: 1100px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100dvh;
    height: auto;
  }

  .test-screen {
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100dvh;
    min-height: 800px;
  }

  .test-screen--start {
    background-color: #060d0e;
    background-size: cover, cover, 521px 287px;
    background-position: center top, center center, calc(50% - 36px) 47px;
  }

  .test-screen--start::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42%;
    background:
      linear-gradient(
        180deg,
        rgba(6, 13, 14, 0) 0%,
        rgba(6, 13, 14, 0.35) 28%,
        rgba(6, 13, 14, 0.72) 64%,
        rgba(6, 13, 14, 0.95) 100%
      ),
      url('/Content/Landing/assets/images/test_start_fog_01.png') center bottom / 150% auto
        no-repeat;
    pointer-events: none;
    z-index: 1;
  }

  .test-start {
    justify-content: flex-start;
    padding-top: 224px;
    z-index: 2;
  }

  .test-start__logo {
    width: 158px;
    height: auto;
    margin-bottom: 16px;
  }

  .test-start__subtitle {
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: -0.6px;
    margin-bottom: 10px;
  }

  .test-start__title {
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 26px;
  }

  .test-start__desc {
    font-size: 15px;
    line-height: 1.33;
    width: calc(100% - 78px);
    margin-bottom: 44px;
  }

  .test-start__btn {
    width: 250px;
    height: 60px;
    font-size: 23px;
    padding: 0;
    animation: none;
    box-shadow: 0 0 34px rgba(242, 184, 36, 0.45);
  }

  .test-screen--question::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(181deg, rgba(102, 102, 102, 0) 3.36%, rgba(17, 17, 17, 0.63) 86.89%);
    z-index: 1;
    pointer-events: none;
  }

  .test-screen__bg--dim {
    width: 100%;
    height: 100%;
    filter: brightness(0.45);
  }

  .test-question {
    padding-top: 145px;
    z-index: 3;
  }

  .test-question__number {
    font-size: 50px;
    line-height: 1;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
  }

  .test-question__text {
    font-size: 17px;
    letter-spacing: -0.51px;
    margin-bottom: 6px;
  }

  .test-question__highlight {
    font-size: 32px;
    line-height: 1.05;
    letter-spacing: -0.8px;
    margin-bottom: 34px;
  }

  .test-question__options {
    width: calc(100% - 60px);
    gap: 15px;
  }

  .test-option {
    height: 70px;
    padding: 0 18px;
    font-size: 17px;
    border-radius: 100px;
    line-height: 1.3;
  }

  .test-question__char {
    left: -48px;
    top: auto;
    bottom: -7%;
    width: 207px;
    height: 413px;
    z-index: 2;
  }

  .test-screen--result {
    --result-mobile-width: min(330px, calc(100vw - 30px));
    background: #0b0d12;
  }

  .test-result-layer--bg {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none;
    background:
      linear-gradient(180deg, rgba(8, 11, 17, 0.04) 0%, rgba(8, 11, 17, 0.2) 55%, rgba(8, 11, 17, 0.44) 100%),
      radial-gradient(96% 78% at 50% 27%, rgba(134, 114, 87, 0.16) 0%, rgba(0, 0, 0, 0) 75%),
      url('/Content/Landing/assets/images/test_result_bg.png') center 8% / cover no-repeat;
    filter: brightness(1.11) contrast(1.04) saturate(1.05);
    opacity: 1;
  }

  .test-result-layer--fog-1,
  .test-result-layer--fog-2 {
    display: none;
  }

  .test-screen--result::after {
    display: block;
    height: 120px;
    background: linear-gradient(180deg, rgba(8, 9, 12, 0) 0%, rgba(8, 9, 12, 0.08) 52%, rgba(8, 9, 12, 0.38) 100%);
  }

  .test-result__char {
    left: 50%;
    top: 66px;
    width: min(92vw, 330px);
    transform: translateX(-50%);
    opacity: 0.58;
    filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.35));
  }

  .test-result {
    left: 50%;
    top: 271px;
    width: var(--result-mobile-width);
    transform: translateX(-50%);
    position: relative;
  }

  .test-result::before {
    content: '';
    position: absolute;
    left: -8px;
    right: -8px;
    top: -6px;
    height: 130px;
    background: radial-gradient(85% 85% at 50% 32%, rgba(8, 11, 16, 0.34) 0%, rgba(8, 11, 16, 0) 100%);
    pointer-events: none;
    z-index: 0;
  }

  .test-result > * {
    position: relative;
    z-index: 1;
  }

  .test-result__header {
    text-align: right;
    margin-bottom: 14px;
    padding-right: 2px;
  }

  .test-result__subtitle {
    font-size: 17px;
    line-height: 1.15;
    letter-spacing: -0.51px;
  }

  .test-result__title {
    margin-top: 8px;
    font-size: 32px;
    line-height: 0.93;
    letter-spacing: -0.8px;
    display: inline-block;
    max-width: 168px;
    text-align: right;
    white-space: normal;
  }

  .test-result__card {
    background: rgba(8, 10, 14, 0.9);
    border-radius: 20px;
    min-height: 215px;
    padding: 16px 18px 14px;
    margin-bottom: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  }

  .test-result__quote {
    text-align: center;
    font-size: 17px;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .test-result__desc {
    width: auto;
    margin: 0 auto 10px;
    text-align: center;
    font-size: 15px;
    line-height: 20px;
  }

  .test-result__tags {
    justify-content: center;
    gap: 26px;
    margin-bottom: 0;
  }

  .test-result__tag {
    font-size: 13px;
    line-height: 1;
    gap: 8px;
  }

  .test-result__tag-icon {
    width: 18px;
    height: 18px;
  }

  .test-result__buttons {
    width: var(--result-mobile-width);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .test-result__btn {
    width: var(--result-mobile-width);
    height: 50px;
    padding: 0;
    font-size: 20px;
    line-height: 1;
  }

  .test-result__btn::before {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .test-result__btn--share {
    order: 1;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.2px;
    border: none;
  }

  .test-result__btn--retry {
    order: 2;
    border-width: 2px;
    border-color: #bcbcbc;
    background: rgba(17, 17, 17, 0.84);
    font-size: 20px;
  }

  .test-result__btn--copy {
    order: 3;
    background: transparent;
    border: none;
    color: #757575;
    font-size: 13px;
    font-weight: 600;
    height: 24px;
    width: var(--result-mobile-width);
    opacity: 1;
    margin-top: 2px;
  }

  .test-result__btn--copy::before {
    display: none;
  }
}

/* ========== Transitions ========== */
.test-screen {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.test-screen.active {
  opacity: 1;
}
