@font-face {
  font-family: "Noto Sans KR Local";
  src: url("../fonts/noto-sans-kr-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans KR Local";
  src: url("../fonts/noto-sans-kr-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans KR Local";
  src: url("../fonts/noto-sans-kr-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2408-3@1.0/Paperlogy-4Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Paperlogy";
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2408-3@1.0/Paperlogy-7Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7fbff;
  --paper: #ffffff;
  --text: #132238;
  --muted: #687789;
  --line: #dbe6f2;
  --blue: #1769ff;
  --blue-soft: #eaf2ff;
  --blue-faint: #f3f8ff;
  --shadow: 0 26px 70px rgba(33, 79, 132, 0.14);
  --font: "Noto Sans KR Local", "Paperlogy", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(23, 105, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 54%, #ffffff 100%);
  font-family: var(--font);
}

body.standardIntroActive {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

.standardIntro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background: linear-gradient(135deg, rgba(247, 251, 255, 0.98), rgba(255, 255, 255, 0.9));
  transition: opacity 0.42s ease, visibility 0.42s ease;
}

body:not(.standardIntroActive) .standardIntro {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.introContent {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  text-align: center;
  animation: introContentIn 0.7s cubic-bezier(0.18, 0.88, 0.18, 1) both;
}

.introKicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 800;
}

.introContent h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(76px, 14vw, 178px);
  line-height: 0.92;
  letter-spacing: 0;
}

.introCopy {
  width: min(620px, 100%);
  margin: 24px auto 0;
  color: #40536a;
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.5;
  word-break: keep-all;
}

.introCopy span {
  display: block;
}

.introStartButton {
  min-width: 172px;
  min-height: 52px;
  margin-top: 34px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 20px 42px rgba(23, 105, 255, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.introStartButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(23, 105, 255, 0.32);
}

.introStartButton:focus-visible {
  outline: 3px solid rgba(23, 105, 255, 0.28);
  outline-offset: 4px;
}

.introNumberField {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  color: rgba(23, 105, 255, 0.13);
  font-size: clamp(36px, 9vw, 130px);
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.introNumberField span {
  animation: introNumberDrift 2.4s ease-in-out infinite alternate;
}

.introNumberField span:nth-child(2),
.introNumberField span:nth-child(3) {
  animation-delay: 0.35s;
}

.introNumberField span:nth-child(3),
.introNumberField span:nth-child(4) {
  align-self: end;
  padding-bottom: 8svh;
}

body.standardIntroClosing .standardIntro {
  opacity: 0;
  visibility: hidden;
}

body.standardIntroActive .standardShell {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
}

.standardShell {
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.18, 0.88, 0.18, 1);
}

body.standardIntroReady .standardShell {
  animation: shellReveal 0.52s cubic-bezier(0.18, 0.88, 0.18, 1) both;
}

@keyframes introContentIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
}

@keyframes introNumberDrift {
  from {
    opacity: 0.5;
    transform: translate3d(-10px, 8px, 0) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate3d(12px, -8px, 0) scale(1.02);
  }
}

@keyframes shellReveal {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.standardShell {
  width: 100%;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(14px, 2svh, 24px) 24px clamp(14px, 2svh, 28px);
  display: flex;
  flex-direction: column;
}

.standardTopRow {
  display: grid;
  grid-template-columns: minmax(280px, max-content) minmax(0, 1fr);
  align-items: center;
  gap: 18px 24px;
  min-height: clamp(86px, 12svh, 118px);
  padding-bottom: clamp(10px, 1.8svh, 18px);
}

.standardHeader {
  display: flex;
  align-items: baseline;
  gap: 16px;
  text-align: left;
  padding: 0;
}

.standardShareButton {
  flex: 0 0 auto;
  min-width: 82px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(23, 105, 255, 0.24);
  border-radius: 999px;
  background: var(--paper);
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(23, 105, 255, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.standardShareButton:hover {
  transform: translateY(-1px);
  border-color: rgba(23, 105, 255, 0.42);
  background: var(--blue-faint);
}

.standardShareButton:focus-visible {
  outline: 3px solid rgba(23, 105, 255, 0.28);
  outline-offset: 3px;
}

.standardPanelActions {
  position: absolute;
  top: clamp(18px, 2.8svh, 30px);
  right: clamp(18px, 3vw, 42px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.shareStatus {
  min-width: 54px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.standardSubtitle {
  margin: 0;
  color: var(--blue);
  font-size: clamp(15px, 2vw, 22px);
  font-weight: 700;
  white-space: nowrap;
}

.standardHeader h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.standardViewer {
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: clamp(10px, 1.8svh, 18px);
  min-height: 0;
}

.standardCarousel {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1080px;
  margin: 0;
  justify-self: center;
}

.carouselArrow {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(23, 105, 255, 0.22);
  border-radius: 50%;
  background: var(--paper);
  color: var(--blue);
  box-shadow: 0 14px 28px rgba(23, 105, 255, 0.12);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.carouselArrow span {
  display: block;
  translate: 0 -2px;
  font-size: 38px;
  line-height: 1;
}

.carouselArrow:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 105, 255, 0.42);
  background: var(--blue-faint);
}

.carouselTrack {
  position: relative;
  min-height: clamp(92px, 12svh, 118px);
  overflow: hidden;
}

.carouselItem {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(420px, 32vw);
  padding: 17px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  text-align: center;
  color: #8b99aa;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: transform 0.38s cubic-bezier(0.2, 0.84, 0.24, 1), opacity 0.28s ease, color 0.28s ease, background 0.28s ease;
  cursor: pointer;
  user-select: none;
}

.standardPanel,
.optionStrip {
  width: min(1320px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.carouselItem.isCenter {
  color: var(--text);
  background: var(--paper);
  box-shadow: 0 18px 46px rgba(33, 79, 132, 0.13);
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.carouselItem.isLeft {
  opacity: 0.58;
  transform: translate(calc(-50% - min(32vw, 360px)), -50%) scale(0.82);
}

.carouselItem.isRight {
  opacity: 0.58;
  transform: translate(calc(-50% + min(32vw, 360px)), -50%) scale(0.82);
}

.carouselItem.isFarLeft {
  opacity: 0.2;
  transform: translate(calc(-50% - min(54vw, 580px)), -50%) scale(0.62);
}

.carouselItem.isFarRight {
  opacity: 0.2;
  transform: translate(calc(-50% + min(54vw, 580px)), -50%) scale(0.62);
}

.carouselItem strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: 1.18;
}

.carouselItem:not(.isCenter):hover {
  color: #51647b;
  opacity: 0.76;
}

.standardPanel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: clamp(22px, 4vw, 48px);
  min-height: clamp(470px, 62svh, 570px);
  height: auto;
  padding: clamp(28px, 4.8svh, 58px) clamp(34px, 5vw, 68px);
  border: 1px solid rgba(23, 105, 255, 0.13);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.standardPanel.isChanging {
  animation: panelShift 0.34s cubic-bezier(0.2, 0.84, 0.24, 1);
}

@keyframes panelShift {
  0% {
    opacity: 0.52;
    transform: translateY(10px) scale(0.992);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.standardContent {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.standardLabel {
  margin: 0 0 clamp(12px, 1.8svh, 20px);
  color: var(--blue);
  font-size: clamp(15px, 1.35vw, 20px);
  font-weight: 700;
}

.standardValue {
  margin: 0;
  max-width: 880px;
  font-size: clamp(50px, 5.8vw, 96px);
  line-height: 1.06;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: normal;
}

.valueChunk {
  display: inline-block;
  white-space: nowrap;
}

.standardSummary {
  max-width: 760px;
  margin: clamp(14px, 2.2svh, 22px) 0 0;
  color: #45566b;
  font-size: clamp(17px, 1.75vw, 24px);
  line-height: 1.48;
  word-break: keep-all;
}

.standardFacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.5svh, 14px);
  margin: clamp(18px, 3svh, 32px) 0 0;
}

.factItem {
  min-width: 0;
  padding: clamp(13px, 1.9svh, 17px) clamp(14px, 1.8vw, 20px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.factItem dt {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.factItem dd {
  margin: 0;
  color: #26364a;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.factItem:nth-child(5) {
  grid-column: 1 / -1;
}

.sourceItem dd {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.sourceLink {
  display: inline-flex;
  max-width: 100%;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 105, 255, 0.34);
  overflow-wrap: anywhere;
}

.sourceLink:hover {
  border-bottom-color: currentColor;
}

.sourceMuted {
  color: var(--muted);
}

.standardVisual {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
}

.visualRing {
  width: min(300px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(from 220deg, var(--blue) 0 68%, #d9e8ff 68% 100%),
    #eef5ff;
  box-shadow: inset 0 0 0 24px #ffffff, 0 24px 54px rgba(23, 105, 255, 0.18);
}

.visualMetric {
  width: 56%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--blue);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
}

.visualBars {
  position: absolute;
  right: 4%;
  bottom: 14%;
  display: flex;
  align-items: end;
  gap: 9px;
  height: 108px;
}

.visualBars span {
  width: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1769ff, #9cc2ff);
  opacity: 0.72;
  transform-origin: bottom;
  animation: barRise 0.52s ease both;
}

@keyframes barRise {
  from {
    transform: scaleY(0.35);
    opacity: 0.2;
  }
}

.optionStrip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 10px;
  min-height: 56px;
}

.optionCard {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #415169;
  min-height: 56px;
  padding: 11px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.optionCard strong {
  display: block;
  color: inherit;
  font-size: clamp(14px, 1.15vw, 17px);
}

.optionCard span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: clamp(12px, 1vw, 15px);
}

@media (min-width: 821px) and (max-width: 1180px) {
  .standardTopRow {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .standardHeader {
    justify-content: flex-start;
  }

  .standardCarousel {
    max-width: none;
  }

  .carouselItem {
    width: min(390px, 38vw);
  }
}

@media (min-width: 821px) and (max-height: 820px) {
  .standardShell {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .standardTopRow {
    min-height: 82px;
    padding-bottom: 8px;
  }

  .standardHeader h1 {
    font-size: clamp(38px, 4.4vw, 58px);
  }

  .standardSubtitle {
    font-size: clamp(14px, 1.6vw, 18px);
  }

  .carouselArrow {
    width: 46px;
    height: 46px;
  }

  .carouselArrow span {
    font-size: 32px;
  }

  .carouselTrack {
    min-height: 82px;
  }

  .carouselItem {
    padding: 12px 12px;
  }

  .carouselItem strong {
    font-size: clamp(18px, 2.2vw, 28px);
  }

  .standardPanel {
    min-height: clamp(430px, 58svh, 500px);
    padding: 24px 40px;
  }

  .standardValue {
    font-size: clamp(46px, 5.2vw, 82px);
  }

  .standardSummary {
    font-size: clamp(16px, 1.55vw, 21px);
    line-height: 1.42;
  }

  .standardFacts {
    margin-top: 16px;
  }

  .factItem {
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .standardVisual {
    min-height: 220px;
  }

  .visualRing {
    width: min(250px, 100%);
    box-shadow: inset 0 0 0 18px #ffffff, 0 18px 40px rgba(23, 105, 255, 0.16);
  }

  .visualBars {
    height: 84px;
  }
}

.optionCard.isActive {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}

.optionCard:hover {
  transform: translateY(-1px);
}

@media (max-width: 820px) {
  .standardIntro {
    padding: 20px;
  }

  .introNumberField {
    grid-template-columns: 1fr;
    align-content: space-between;
    padding: 10svh 0;
    font-size: clamp(42px, 16vw, 84px);
  }

  .introNumberField span:nth-child(3),
  .introNumberField span:nth-child(4) {
    align-self: center;
    padding-bottom: 0;
  }

  .introCopy {
    font-size: clamp(17px, 5vw, 22px);
  }

  .standardShell {
    padding: 20px 14px 28px;
  }

  .standardTopRow {
    min-height: auto;
    padding-bottom: 14px;
  }

  .standardCarousel {
    position: relative;
    inset: auto;
    margin-top: 10px;
  }

  .standardHeader {
    gap: 10px;
    flex-wrap: wrap;
  }

  .standardSubtitle {
    font-size: clamp(13px, 4vw, 16px);
  }

  .standardShareButton {
    min-width: 70px;
    min-height: 36px;
    padding: 0 13px;
    font-size: 14px;
  }

  .standardPanelActions {
    top: 16px;
    right: 16px;
  }

  .standardHeader h1 {
    font-size: clamp(34px, 11vw, 52px);
  }

  .standardCarousel {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .carouselArrow {
    width: 44px;
    height: 44px;
  }

  .carouselTrack {
    min-height: 88px;
  }

  .carouselItem {
    width: min(280px, 58vw);
    padding: 13px 10px;
  }

  .carouselItem strong {
    font-size: clamp(17px, 5.4vw, 25px);
  }

  .carouselItem.isLeft {
    transform: translate(calc(-50% - 38vw), -50%) scale(0.72);
  }

  .carouselItem.isRight {
    transform: translate(calc(-50% + 38vw), -50%) scale(0.72);
  }

  .carouselItem.isFarLeft,
  .carouselItem.isFarRight {
    opacity: 0;
  }

  .standardPanel {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: auto;
    padding: 66px 22px 30px;
    border-radius: 22px;
  }

  .standardFacts {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .factItem,
  .factItem:nth-child(5) {
    grid-column: auto;
  }

  .standardVisual {
    min-height: 190px;
    order: -1;
  }

  .visualRing {
    width: 172px;
    box-shadow: inset 0 0 0 16px #ffffff, 0 18px 38px rgba(23, 105, 255, 0.15);
  }

  .visualBars {
    right: 18%;
    bottom: 10%;
    height: 72px;
  }

  .visualBars span {
    width: 12px;
  }

  .optionStrip {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .optionCard {
    flex: 0 0 min(240px, 78vw);
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {
  .standardShell {
    width: calc(100% - 20px);
  }

  .standardValue {
    font-size: clamp(42px, 14vw, 64px);
  }

  .standardSummary {
    font-size: 16px;
  }

  .factItem {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
