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

@font-face {
  font-family: "GmarketSans";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff")
    format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jalnan";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/Jalnan.woff")
    format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky-50: #f6fcff;
  --sky-100: #e7f7ff;
  --sky-400: #56c5f3;
  --sky-500: #29aee8;
  --navy: #17324d;
  --ink: #25384b;
  --yellow: #ffd86d;
  --white: #ffffff;
  --app-height: 100dvh;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

@keyframes rise-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.985);
    filter: blur(5px);
  }

  62% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes page-wake {
  from {
    opacity: 0;
    transform: scale(0.992);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes soft-float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-7px) rotate(-1deg);
  }
}

@keyframes paper-drift {
  0%,
  100% {
    transform: translateY(0) rotate(var(--paper-rotate));
  }

  50% {
    transform: translateY(-5px) rotate(calc(var(--paper-rotate) + 3deg));
  }
}

@keyframes type-course {
  from {
    width: 0;
  }

  to {
    width: 5.8em;
  }
}

@keyframes cursor-blink {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}

@keyframes appear-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tap-course {
  0%,
  42% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }

  55% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  74%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.2);
  }
}

@keyframes question-sweep {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes question-card-play {
  0% {
    opacity: 0;
    transform: translateX(18px);
  }

  12%,
  68% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-14px);
  }
}

@keyframes question-focus {
  0%,
  100% {
    opacity: 1;
  }

  18%,
  72% {
    opacity: 1;
  }
}

@keyframes option-pick {
  0%,
  42% {
    opacity: 0.52;
    transform: scale(1);
    background: rgba(41, 174, 232, 0.1);
    color: #416174;
  }

  58% {
    opacity: 1;
    transform: scale(1.035);
    background: var(--sky-500);
    color: var(--white);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    background: var(--sky-500);
    color: var(--white);
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loading-card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes loading-ring {
  from {
    transform: rotate(0turn);
  }

  to {
    transform: rotate(1turn);
  }
}

@keyframes loading-dot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }

  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@keyframes toast-in-out {
  0% {
    opacity: 0;
    transform: translate(-50%, 14px) scale(0.96);
  }

  16%,
  78% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.98);
  }
}

@keyframes line-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes strike-swipe {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes line-cross-out {
  0%,
  68% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-5px);
    filter: blur(3px);
  }
}

@keyframes final-message-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes timetable-rise {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes plan-a-play {
  0%,
  30% {
    background: var(--sky-500);
    color: var(--white);
    box-shadow: 0 7px 14px rgba(41, 174, 232, 0.22);
  }

  38%,
  100% {
    background: rgba(255, 255, 255, 0.76);
    color: var(--navy);
    box-shadow: none;
  }
}

@keyframes plan-b-play {
  0%,
  34% {
    background: rgba(255, 255, 255, 0.76);
    color: var(--navy);
    box-shadow: none;
  }

  42%,
  64% {
    background: var(--sky-500);
    color: var(--white);
    box-shadow: 0 7px 14px rgba(41, 174, 232, 0.22);
  }

  72%,
  100% {
    background: rgba(255, 255, 255, 0.76);
    color: var(--navy);
    box-shadow: none;
  }
}

@keyframes plan-c-play {
  0%,
  68% {
    background: rgba(255, 255, 255, 0.76);
    color: var(--navy);
    box-shadow: none;
  }

  76%,
  100% {
    background: var(--sky-500);
    color: var(--white);
    box-shadow: 0 7px 14px rgba(41, 174, 232, 0.22);
  }
}

@keyframes plan-a-blocks {
  0%,
  30% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  38%,
  100% {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
}

@keyframes plan-b-blocks {
  0%,
  34% {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }

  42%,
  64% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  72%,
  100% {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
}

@keyframes plan-c-blocks {
  0%,
  68% {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }

  76%,
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

html {
  width: 100%;
  height: 100%;
  background: #dff5ff;
  overflow: hidden;
}

body {
  margin: 0;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--ink);
  font-family:
    "Pretendard",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 216, 109, 0.38), transparent 10rem),
    radial-gradient(circle at 84% 18%, rgba(86, 197, 243, 0.34), transparent 14rem),
    linear-gradient(180deg, #fbfeff 0%, var(--sky-100) 58%, #ddf5ff 100%);
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: pan-y;
}

img,
a,
button {
  -webkit-user-drag: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(41, 174, 232, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 174, 232, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black, black 70%, transparent);
}

.page-shell {
  position: relative;
  display: flex;
  width: 100%;
  height: var(--app-height);
  max-height: var(--app-height);
  justify-content: center;
  overflow: hidden;
  animation: page-wake 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.app-toast {
  position: absolute;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 80;
  display: inline-flex;
  width: max-content;
  max-width: calc(100% - 36px);
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(41, 174, 232, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 18px 34px rgba(23, 50, 77, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px) scale(0.96);
}

.app-toast span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--sky-500);
  color: var(--white);
  font-size: 13px;
  font-weight: 1000;
}

.app-toast strong {
  font: inherit;
  color: inherit;
  white-space: nowrap;
}

.app-toast.is-visible {
  animation: toast-in-out 1700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero {
  display: flex;
  width: min(100%, 430px);
  height: 100%;
  min-height: 0;
  padding: calc(28px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom));
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

html[data-view="course"] .hero,
html[data-view="needs"] .hero,
html[data-view="personal-needs"] .hero,
html[data-view="loading"] .hero,
html[data-view="result"] .hero {
  display: none;
}

.mascot-stage {
  position: relative;
  display: grid;
  width: 100%;
  flex: 0 0 min(25svh, 204px);
  min-height: 166px;
  margin-top: 2px;
  margin-bottom: 4px;
  place-items: center;
  animation: rise-in 980ms cubic-bezier(0.16, 1, 0.3, 1) 80ms both;
  will-change: transform, opacity, filter;
}

.mascot-stage::before {
  content: "";
  position: absolute;
  width: min(70vw, 256px);
  aspect-ratio: 1;
  border-radius: 42% 58% 55% 45% / 46% 42% 58% 54%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(231, 247, 255, 0.74)),
    var(--sky-100);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.82),
    0 26px 54px rgba(41, 174, 232, 0.16);
}

.mascot {
  position: relative;
  z-index: 3;
  width: min(50vw, 194px);
  height: auto;
  filter: drop-shadow(0 18px 18px rgba(23, 50, 77, 0.13));
  transform: rotate(-2deg);
  animation: soft-float 4.8s ease-in-out 1500ms infinite;
  user-select: none;
}

.shadow {
  position: absolute;
  z-index: 2;
  bottom: 30px;
  width: min(52vw, 220px);
  height: 22px;
  border-radius: 999px;
  background: rgba(23, 50, 77, 0.1);
  filter: blur(9px);
}

.bubble,
.paper {
  position: absolute;
  z-index: 1;
}

.bubble {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(41, 174, 232, 0.12);
}

.bubble-one {
  top: 26px;
  right: 20px;
  width: 48px;
  height: 48px;
}

.bubble-two {
  left: 22px;
  bottom: 54px;
  width: 34px;
  height: 34px;
  background: rgba(255, 216, 109, 0.58);
}

.paper {
  width: 58px;
  height: 70px;
  border: 2px solid rgba(23, 50, 77, 0.07);
  border-radius: 13px;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 13px,
      rgba(41, 174, 232, 0.18) 14px 15px
    ),
    var(--white);
  box-shadow: 0 14px 26px rgba(41, 174, 232, 0.13);
}

.paper-one {
  --paper-rotate: -10deg;
  top: 66px;
  left: 18px;
  transform: rotate(var(--paper-rotate));
  animation: paper-drift 5.2s ease-in-out 1500ms infinite;
}

.paper-two {
  --paper-rotate: 12deg;
  right: 16px;
  bottom: 34px;
  width: 52px;
  height: 62px;
  transform: rotate(var(--paper-rotate));
  animation: paper-drift 5.6s ease-in-out 1700ms infinite;
  background:
    linear-gradient(90deg, rgba(255, 145, 142, 0.55) 0 8px, transparent 8px),
    repeating-linear-gradient(
      to bottom,
      transparent 0 12px,
      rgba(41, 174, 232, 0.16) 13px 14px
    ),
    var(--white);
}

.hero-copy {
  position: relative;
  z-index: 5;
  display: flex;
  width: 100%;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(46px, 14.4vw, 64px);
  line-height: 0.94;
  font-weight: 1000;
  font-family:
    "Jalnan",
    "Pretendard",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  letter-spacing: 0;
  text-shadow:
    0 4px 0 rgba(255, 255, 255, 0.95),
    0 16px 32px rgba(41, 174, 232, 0.18);
  white-space: nowrap;
  animation: rise-in 920ms cubic-bezier(0.16, 1, 0.3, 1) 260ms both;
  will-change: transform, opacity, filter;
}

.message {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 88px;
  margin-top: 14px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-family:
    "Pretendard",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  font-size: clamp(15px, 4vw, 17.5px);
  font-weight: 850;
  line-height: 1.48;
  text-align: center;
  word-break: keep-all;
  will-change: transform, opacity, filter;
}

.message p {
  margin: 0;
}

.message p + p {
  margin-top: 5px;
}

.message-line {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
  opacity: 0;
  animation:
    line-reveal 720ms cubic-bezier(0.16, 1, 0.3, 1) both,
    line-cross-out 980ms ease forwards;
  will-change: transform, opacity, filter;
}

.problem-line::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: rgba(23, 50, 77, 0.78);
  transform: scaleX(0);
  transform-origin: left center;
  animation: strike-swipe 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.line-one {
  animation-delay: 520ms, 3000ms;
}

.line-one::after {
  animation-delay: 2400ms;
}

.line-two {
  animation-delay: 1210ms, 3000ms;
}

.line-two::after {
  animation-delay: 2400ms;
}

.message-final {
  position: absolute;
  inset: 0;
  display: flex;
  margin: 0;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-family:
    "Jalnan",
    "Pretendard",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  font-size: clamp(19px, 5.2vw, 24px);
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  opacity: 0;
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.88);
  animation: final-message-in 720ms cubic-bezier(0.16, 1, 0.3, 1) 4100ms both;
}

.flow-preview {
  display: flex;
  width: min(100%, 326px);
  margin-top: 22px;
  gap: 8px;
  opacity: 0;
  transform: translateY(12px);
  will-change: transform, opacity, filter;
}

html[data-demo-ready="true"] .flow-preview {
  animation: rise-in 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.flow-step {
  display: flex;
  flex: 0.86 1 0;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(41, 174, 232, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
  font-family:
    "Pretendard",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  box-shadow: 0 12px 24px rgba(41, 174, 232, 0.1);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  transition:
    flex 520ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    background 520ms ease,
    box-shadow 520ms ease,
    font-size 520ms ease;
}

.step-number {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: rgba(41, 174, 232, 0.14);
  color: var(--sky-500);
  font-size: 11px;
  font-weight: 1000;
  transition:
    background 520ms ease,
    color 520ms ease;
}

html[data-stage="course"] [data-flow-step="course"],
html[data-stage="needs"] [data-flow-step="needs"],
html[data-stage="result"] [data-flow-step="result"] {
  flex: 1.42 1 0;
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 16px 30px rgba(41, 174, 232, 0.2),
    0 0 0 5px rgba(255, 216, 109, 0.18);
  font-size: 13px;
}

html[data-stage="course"] [data-flow-step="course"] .step-number,
html[data-stage="needs"] [data-flow-step="needs"] .step-number,
html[data-stage="result"] [data-flow-step="result"] .step-number {
  background: var(--sky-500);
  color: var(--white);
}

.demo-panel {
  position: relative;
  width: min(100%, 326px);
  height: 246px;
  margin-top: 12px;
  border: 1px solid rgba(41, 174, 232, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 252, 255, 0.76)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    0 18px 36px rgba(41, 174, 232, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  backdrop-filter: blur(12px);
  will-change: transform, opacity, filter;
}

html[data-demo-ready="true"] .demo-panel {
  animation: rise-in 760ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

.demo-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  background-image:
    linear-gradient(rgba(41, 174, 232, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 174, 232, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.demo-scene {
  position: absolute;
  inset: 10px 12px;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition:
    opacity 520ms ease,
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

html[data-stage="course"] .demo-course,
html[data-stage="needs"] .demo-needs,
html[data-stage="result"] .demo-result {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.demo-search {
  position: relative;
  display: flex;
  height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(41, 174, 232, 0.2);
  border-radius: 15px;
  background: var(--white);
  color: var(--navy);
  font-size: 15px;
  font-weight: 850;
}

.search-icon {
  position: relative;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border: 2px solid var(--sky-500);
  border-radius: 999px;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: var(--sky-500);
  transform: rotate(45deg);
}

.typed-text {
  display: inline-block;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
}

html[data-stage="course"] .typed-text {
  animation: type-course 880ms steps(7, end) 180ms both;
}

.typing-cursor {
  display: none;
  width: 2px;
  height: 18px;
  border-radius: 999px;
  background: var(--sky-500);
}

html[data-stage="course"] .typing-cursor {
  display: inline-block;
  animation: cursor-blink 720ms steps(1, end) 260ms infinite;
}

.course-result {
  position: relative;
  display: flex;
  width: 100%;
  height: 54px;
  margin-top: 12px;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 16px;
  background: rgba(41, 174, 232, 0.12);
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
  opacity: 0;
}

.course-name {
  padding-left: 14px;
}

html[data-stage="course"] .course-result {
  animation: appear-pop 360ms cubic-bezier(0.16, 1, 0.3, 1) 1030ms both;
}

.tap-dot {
  position: absolute;
  top: 108px;
  right: 48px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(41, 174, 232, 0.34);
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.74);
  opacity: 0;
}

html[data-stage="course"] .tap-dot {
  animation: tap-course 900ms ease 1580ms both;
}

.demo-needs {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 4px;
}

.question-card {
  display: grid;
  position: relative;
  min-height: 0;
  height: calc((100% - 32px) / 3);
  flex: 0 0 calc((100% - 32px) / 3);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding: 4px 8px;
  border: 1px solid rgba(41, 174, 232, 0.16);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.96);
  opacity: 1;
  box-shadow: 0 8px 18px rgba(41, 174, 232, 0.08);
  overflow: hidden;
}

html[data-stage="needs"] .question-card {
  animation: question-focus 1380ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

html[data-stage="needs"] .is-first {
  animation-delay: 120ms;
}

html[data-stage="needs"] .is-second {
  animation-delay: 1400ms;
}

html[data-stage="needs"] .is-third {
  animation-delay: 2680ms;
}

.question-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--navy);
  font-size: 8.3px;
  font-weight: 900;
  line-height: 1.22;
  text-align: left;
  word-break: keep-all;
  overflow-wrap: normal;
}

.question-card button {
  display: flex;
  min-height: 16px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(41, 174, 232, 0.13);
  color: #416174;
  font-size: 6.8px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  opacity: 0.68;
  word-break: keep-all;
  overflow-wrap: normal;
  transition:
    opacity 240ms ease,
    transform 240ms ease,
    background 240ms ease;
}

.question-card button::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(41, 174, 232, 0.36);
}

.question-card button.is-selected {
  box-shadow: 0 6px 12px rgba(41, 174, 232, 0.22);
}

html[data-stage="needs"] .is-first button.is-selected {
  animation: option-pick 820ms ease 560ms both;
}

html[data-stage="needs"] .is-second button.is-selected {
  animation: option-pick 820ms ease 1940ms both;
}

html[data-stage="needs"] .is-third button.is-selected {
  animation: option-pick 820ms ease 3320ms both;
}

.question-card button.is-selected::before {
  background: var(--white);
}

.demo-result {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.plan-switcher {
  display: grid;
  height: 24px;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.plan-switcher span {
  display: grid;
  place-items: center;
  border: 1px solid rgba(41, 174, 232, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--navy);
  font-size: 10px;
  font-weight: 900;
}

.plan-switcher .is-active {
  background: rgba(255, 255, 255, 0.76);
  color: var(--navy);
  box-shadow: none;
}

html[data-stage="result"] .plan-switcher span:nth-child(1) {
  animation: plan-a-play 4.5s ease both;
}

html[data-stage="result"] .plan-switcher span:nth-child(2) {
  animation: plan-b-play 4.5s ease both;
}

html[data-stage="result"] .plan-switcher span:nth-child(3) {
  animation: plan-c-play 4.5s ease both;
}

.mini-timetable {
  position: relative;
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  grid-template-columns: 24px repeat(5, 1fr);
  grid-template-rows: 18px repeat(12, 1fr);
  overflow: hidden;
  border: 1px solid rgba(41, 174, 232, 0.18);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.mini-timetable::before {
  content: "";
  position: absolute;
  inset: 18px 0 0 24px;
  background-image:
    linear-gradient(rgba(41, 174, 232, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 174, 232, 0.1) 1px, transparent 1px);
  background-size: calc((100% - 24px) / 5) calc((100% - 18px) / 12);
  pointer-events: none;
}

.time-head {
  grid-column: 1;
  grid-row: 1;
}

.day-head {
  display: grid;
  place-items: center;
  color: var(--sky-500);
  font-size: 9px;
  font-weight: 900;
}

.time-label {
  display: grid;
  place-items: start center;
  padding-top: 1px;
  color: rgba(37, 56, 75, 0.56);
  font-size: 7px;
  font-weight: 800;
}

.time-09 { grid-row: 2; }
.time-10 { grid-row: 3; }
.time-11 { grid-row: 4; }
.time-12 { grid-row: 5; }
.time-13 { grid-row: 6; }
.time-14 { grid-row: 7; }
.time-15 { grid-row: 8; }
.time-16 { grid-row: 9; }
.time-17 { grid-row: 10; }
.time-18 { grid-row: 11; }
.time-19 { grid-row: 12; }
.time-20 { grid-row: 13; }

.course-block {
  z-index: 1;
  display: grid;
  min-width: 0;
  place-items: center;
  margin: 1px;
  padding: 1px;
  border-radius: 7px;
  color: var(--white);
  font-size: 6.5px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  opacity: 0;
  box-shadow: 0 6px 10px rgba(23, 50, 77, 0.12);
  word-break: keep-all;
}

html[data-stage="result"] .plan-a-item {
  animation: plan-a-blocks 4.5s ease both;
}

html[data-stage="result"] .plan-b-item {
  animation: plan-b-blocks 4.5s ease both;
}

html[data-stage="result"] .plan-c-item {
  animation: plan-c-blocks 4.5s ease both;
}

.a-math {
  grid-column: 2;
  grid-row: 3 / 5;
  background: #2fafe6;
}

.a-ml {
  grid-column: 4;
  grid-row: 7 / 9;
  background: #5fbfba;
}

.a-culture {
  grid-column: 5;
  grid-row: 10 / 12;
  background: #ff9a8c;
}

.a-writing {
  grid-column: 6;
  grid-row: 4 / 6;
  background: #f3b947;
}

.b-math {
  grid-column: 3;
  grid-row: 2 / 4;
  background: #2fafe6;
}

.b-ml {
  grid-column: 4;
  grid-row: 8 / 10;
  background: #5fbfba;
}

.b-ds {
  grid-column: 6;
  grid-row: 6 / 8;
  background: #5478e4;
}

.b-culture {
  grid-column: 2;
  grid-row: 11 / 13;
  background: #ff9a8c;
}

.b-writing {
  grid-column: 5;
  grid-row: 4 / 6;
  background: #f3b947;
}

.c-math {
  grid-column: 5;
  grid-row: 2 / 4;
  background: #2fafe6;
}

.c-ds {
  grid-column: 2;
  grid-row: 6 / 8;
  background: #5478e4;
}

.c-culture {
  grid-column: 4;
  grid-row: 9 / 11;
  background: #ff9a8c;
}

.c-startup {
  grid-column: 6;
  grid-row: 11 / 13;
  background: #8c77e8;
}

.start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 326px);
  min-height: 58px;
  margin-top: auto;
  margin-bottom: 10px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent),
    var(--sky-500);
  color: var(--white);
  font-family:
    "Jalnan",
    "Pretendard",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  font-size: 20px;
  font-weight: 1000;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow:
    0 16px 30px rgba(41, 174, 232, 0.34),
    0 0 0 7px rgba(255, 216, 109, 0.22),
    inset 0 -3px 0 rgba(23, 50, 77, 0.12);
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  will-change: transform, opacity, filter;
}

html[data-demo-ready="true"] .start-button {
  pointer-events: auto;
  animation: cta-arrive 760ms cubic-bezier(0.16, 1, 0.3, 1) 180ms both;
}

.start-button:active {
  transform: translateY(1px);
}

.course-page {
  position: relative;
  display: none;
  width: min(100%, 430px);
  height: 100%;
  min-height: 0;
  padding: calc(26px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom));
  flex-direction: column;
  color: var(--ink);
  overflow: hidden auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

html[data-view="course"] .course-page {
  display: flex;
  animation: page-wake 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.needs-page,
.personal-needs-page {
  display: none;
  width: min(100%, 430px);
  height: 100%;
  min-height: 0;
  padding: calc(26px + env(safe-area-inset-top)) 22px calc(22px + env(safe-area-inset-bottom));
  flex-direction: column;
  color: var(--ink);
  overflow: hidden;
}

html[data-view="needs"] .needs-page {
  display: flex;
  animation: page-wake 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

html[data-view="personal-needs"] .personal-needs-page {
  display: flex;
  animation: page-wake 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.course-hero {
  display: grid;
  min-height: 170px;
  grid-template-columns: 1fr 120px;
  align-items: center;
  gap: 12px;
}

.needs-hero {
  display: grid;
  min-height: 152px;
  grid-template-columns: 1fr 112px;
  align-items: center;
  gap: 12px;
}

.needs-copy {
  text-align: left;
}

.needs-kicker {
  display: inline-flex;
  min-height: 26px;
  margin: 0 0 10px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(41, 174, 232, 0.13);
  color: var(--sky-500);
  font-size: 12px;
  font-weight: 1000;
}

.needs-copy h2 {
  margin: 0;
  color: var(--navy);
  font-family:
    "Jalnan",
    "Pretendard",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 4px 0 rgba(255, 255, 255, 0.88);
}

.needs-copy p:last-child {
  margin: 10px 0 0;
  color: rgba(37, 56, 75, 0.82);
  font-size: 15px;
  font-weight: 850;
}

.needs-mascot {
  width: 112px;
  justify-self: end;
  filter: drop-shadow(0 16px 18px rgba(23, 50, 77, 0.13));
  animation: soft-float 4.8s ease-in-out infinite;
}

.course-copy {
  text-align: left;
}

.course-kicker {
  display: inline-flex;
  min-height: 26px;
  margin: 0 0 10px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(41, 174, 232, 0.13);
  color: var(--sky-500);
  font-size: 12px;
  font-weight: 1000;
}

.course-copy h2 {
  margin: 0;
  color: var(--navy);
  font-family:
    "Jalnan",
    "Pretendard",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 4px 0 rgba(255, 255, 255, 0.88);
}

.course-copy p:last-child {
  margin: 12px 0 0;
  color: rgba(37, 56, 75, 0.86);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.45;
  word-break: keep-all;
}

.camera-mascot {
  width: 118px;
  justify-self: end;
  filter: drop-shadow(0 16px 18px rgba(23, 50, 77, 0.13));
  animation: soft-float 4.8s ease-in-out infinite;
}

.course-search-area {
  position: relative;
  margin-top: 12px;
}

.search-label {
  display: block;
  margin: 0 0 9px 4px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 950;
  text-align: left;
}

.course-search-box {
  display: flex;
  height: 58px;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid rgba(41, 174, 232, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 16px 30px rgba(41, 174, 232, 0.13),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.course-search-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 3px solid var(--sky-500);
  border-radius: 999px;
}

.course-search-icon::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: -4px;
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: var(--sky-500);
  transform: rotate(45deg);
}

.course-search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 17px;
  font-weight: 850;
  user-select: text;
  -webkit-user-select: text;
}

.course-search-input::placeholder {
  color: rgba(37, 56, 75, 0.42);
}

.course-suggestions {
  margin-top: 10px;
  max-height: min(390px, calc(var(--app-height) - 330px));
  overflow: hidden auto;
  border: 1px solid rgba(41, 174, 232, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 36px rgba(41, 174, 232, 0.13);
  backdrop-filter: blur(14px);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.suggestion-empty,
.suggestion-row {
  display: grid;
  width: 100%;
  min-height: 64px;
  align-items: center;
  padding: 0 18px;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
}

.suggestion-row {
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 12px;
  cursor: pointer;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.suggestion-row:active {
  transform: scale(0.992);
}

.suggestion-row.is-selected {
  background: rgba(41, 174, 232, 0.1);
}

.suggestion-empty {
  color: rgba(37, 56, 75, 0.58);
  font-size: 14px;
  font-weight: 800;
}

.suggestion-row + .suggestion-row {
  border-top: 1px solid rgba(41, 174, 232, 0.1);
}

.suggestion-name {
  color: var(--navy);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.1;
}

.suggestion-meta {
  display: block;
  margin-top: 6px;
  color: rgba(37, 56, 75, 0.64);
  font-size: 12px;
  font-weight: 850;
}

.suggestion-action {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  align-self: center;
  justify-self: end;
  border-radius: 999px;
  background: rgba(41, 174, 232, 0.13);
  color: var(--sky-500);
  font-size: 22px;
  font-weight: 1000;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(41, 174, 232, 0.13);
}

.suggestion-row.is-selected .suggestion-action {
  background: var(--sky-500);
  color: var(--white);
  font-size: 17px;
  box-shadow: 0 8px 18px rgba(41, 174, 232, 0.24);
}

.course-cart-fab {
  position: absolute;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 25;
  display: inline-grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.04)),
    #3bb9ec;
  color: var(--white);
  box-shadow:
    0 16px 30px rgba(41, 174, 232, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.46);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

html[data-keyboard-open="true"][data-view="course"] .course-page {
  padding-top: calc(12px + env(safe-area-inset-top));
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

html[data-keyboard-open="true"][data-view="course"] .course-hero {
  min-height: 74px;
  grid-template-columns: minmax(0, 1fr) 70px;
}

html[data-keyboard-open="true"][data-view="course"] .course-copy h2 {
  font-size: 28px;
}

html[data-keyboard-open="true"][data-view="course"] .course-copy p:last-child {
  display: none;
}

html[data-keyboard-open="true"][data-view="course"] .camera-mascot {
  width: 70px;
}

html[data-keyboard-open="true"][data-view="course"] .course-search-area {
  margin-top: 2px;
}

html[data-keyboard-open="true"][data-view="course"] .course-search-box {
  height: 52px;
  border-radius: 20px;
}

html[data-keyboard-open="true"][data-view="course"] .course-suggestions {
  max-height: calc(var(--app-height) - 185px);
}

html[data-keyboard-open="true"][data-view="course"] .course-cart-fab {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
}

.course-cart-fab:active {
  transform: translateY(1px) scale(0.98);
}

.cart-icon {
  position: relative;
  width: 29px;
  height: 25px;
  margin-top: 7px;
  border: 2.5px solid currentColor;
  border-radius: 9px 9px 10px 10px;
  background: rgba(255, 255, 255, 0.12);
}

.cart-icon::before {
  content: "";
  position: absolute;
  left: 6px;
  top: -10px;
  width: 12px;
  height: 12px;
  border: 2.5px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.cart-icon::after {
  content: "";
  position: absolute;
  inset: 7px 6px auto;
  height: 2.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.cart-count {
  position: absolute;
  top: 9px;
  right: 8px;
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 12px;
  font-weight: 1000;
  box-shadow: 0 5px 12px rgba(23, 50, 77, 0.13);
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  z-index: 30;
  border: 0;
  background: rgba(23, 50, 77, 0.13);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.cart-sheet {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 35;
  display: flex;
  max-height: min(64%, 480px);
  min-height: 280px;
  flex-direction: column;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  border: 1px solid rgba(41, 174, 232, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(246, 252, 255, 0.98), rgba(255, 255, 255, 0.98)),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 52px rgba(23, 50, 77, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px) scale(0.98);
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.course-page[data-cart-open="true"] .cart-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.course-page[data-cart-open="true"] .cart-sheet {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.cart-handle {
  width: 46px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(37, 56, 75, 0.18);
}

.cart-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 2px 14px;
}

.cart-title {
  display: block;
  color: rgba(23, 50, 77, 0.92);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.25;
}

.cart-summary {
  display: block;
  margin: 4px 0 0;
  color: rgba(37, 56, 75, 0.58);
  font-family:
    "Pretendard",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: 0;
}

.cart-list {
  display: grid;
  min-height: 0;
  gap: 9px;
  overflow: hidden auto;
  padding: 2px 0 12px;
}

.cart-empty {
  display: grid;
  min-height: 116px;
  place-items: center;
  border: 1px dashed rgba(41, 174, 232, 0.24);
  border-radius: 20px;
  color: rgba(37, 56, 75, 0.56);
  font-size: 14px;
  font-weight: 850;
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 12px;
  align-items: center;
  padding: 13px 12px 13px 15px;
  border: 1px solid rgba(41, 174, 232, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.cart-item strong,
.cart-item span span {
  display: block;
}

.cart-item strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item span span {
  margin-top: 5px;
  color: rgba(37, 56, 75, 0.62);
  font-size: 12px;
  font-weight: 850;
}

.cart-remove-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: rgba(37, 56, 75, 0.62);
  font-size: 22px;
  font-weight: 900;
}

.cart-next-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--sky-500);
  color: var(--white);
  font-family:
    "Jalnan",
    "Pretendard",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  font-size: 18px;
  font-weight: 400;
  box-shadow: 0 12px 26px rgba(41, 174, 232, 0.28);
}

.cart-next-button:disabled {
  background: rgba(37, 56, 75, 0.14);
  color: rgba(37, 56, 75, 0.34);
  box-shadow: none;
}

.needs-form {
  display: grid;
  min-height: 0;
  gap: 10px;
  overflow: hidden auto;
  padding: 2px 0 14px;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.needs-form::-webkit-scrollbar {
  width: 8px;
}

.needs-form::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.needs-form::-webkit-scrollbar-thumb {
  border: 2px solid rgba(246, 252, 255, 0.84);
  border-radius: 999px;
  background: rgba(41, 174, 232, 0.36);
}

.needs-form {
  scrollbar-color: rgba(41, 174, 232, 0.36) rgba(255, 255, 255, 0.36);
  scrollbar-width: thin;
}

.need-card {
  padding: 14px;
  border: 1px solid rgba(41, 174, 232, 0.15);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 28px rgba(41, 174, 232, 0.1);
}

.need-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.2;
}

.need-card p {
  margin: 5px 0 11px;
  color: rgba(37, 56, 75, 0.62);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  word-break: keep-all;
}

.need-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.need-options.two-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.need-options button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid rgba(41, 174, 232, 0.13);
  border-radius: 14px;
  background: rgba(246, 252, 255, 0.82);
  color: rgba(37, 56, 75, 0.76);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  word-break: keep-all;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.need-options button:active {
  transform: scale(0.98);
}

.need-options button.is-selected {
  border-color: rgba(41, 174, 232, 0.32);
  background: var(--sky-500);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(41, 174, 232, 0.2);
}

.credit-card {
  gap: 9px;
}

.target-credit-label {
  display: block;
  margin: 11px 0 7px;
  color: rgba(37, 56, 75, 0.68);
  font-size: 12px;
  font-weight: 900;
}

.target-credit-input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(41, 174, 232, 0.18);
  border-radius: 16px;
  outline: 0;
  background: rgba(246, 252, 255, 0.86);
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  user-select: text;
  -webkit-user-select: text;
  touch-action: manipulation;
}

.target-credit-input::placeholder {
  color: rgba(37, 56, 75, 0.42);
}

.keyword-card {
  display: grid;
  gap: 9px;
  transition:
    opacity 180ms ease,
    filter 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.keyword-card label {
  color: var(--navy);
  font-size: 15px;
  font-weight: 950;
}

.keyword-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(41, 174, 232, 0.18);
  border-radius: 16px;
  outline: 0;
  background: rgba(246, 252, 255, 0.86);
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  user-select: text;
  -webkit-user-select: text;
  touch-action: manipulation;
}

.keyword-card[data-keyword-enabled="false"] {
  border-color: rgba(41, 174, 232, 0.1);
  background: rgba(255, 255, 255, 0.58);
}

.keyword-card[data-keyword-enabled="false"] label,
.keyword-card[data-keyword-enabled="false"] .keyword-help {
  color: rgba(37, 56, 75, 0.42);
}

.keyword-input:disabled {
  border-color: rgba(41, 174, 232, 0.08);
  background: rgba(236, 247, 252, 0.58);
  color: rgba(37, 56, 75, 0.36);
  cursor: not-allowed;
}

.keyword-input:disabled::placeholder {
  color: rgba(37, 56, 75, 0.32);
}

.keyword-input::placeholder {
  color: rgba(37, 56, 75, 0.42);
}

.keyword-help {
  margin: -2px 0 0;
  color: rgba(37, 56, 75, 0.54);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  word-break: keep-all;
}

.keyword-preview {
  display: flex;
  min-height: 0;
  flex-wrap: wrap;
  gap: 6px;
}

.keyword-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(41, 174, 232, 0.12);
  color: var(--sky-500);
  font: inherit;
  font-size: 12px;
  font-weight: 950;
}

.keyword-chip::after {
  content: "×";
  margin-left: 6px;
  color: rgba(37, 56, 75, 0.46);
  font-size: 13px;
  font-weight: 1000;
}

.basic-next-button,
.needs-submit-button {
  display: inline-flex;
  width: 100%;
  min-height: 56px;
  flex: 0 0 auto;
  margin-top: 10px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent),
    var(--sky-500);
  color: var(--white);
  font-family:
    "Pretendard",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  font-size: 17px;
  font-weight: 950;
  box-shadow:
    0 14px 28px rgba(41, 174, 232, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.basic-next-button:disabled,
.needs-submit-button:disabled {
  background: rgba(37, 56, 75, 0.14);
  color: rgba(37, 56, 75, 0.34);
  box-shadow: none;
}

.loading-page {
  display: none;
  width: min(100%, 430px);
  height: 100%;
  min-height: 0;
  padding: calc(24px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom));
  color: var(--ink);
  overflow: hidden auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

html[data-view="loading"] .loading-page {
  display: flex;
  animation: page-wake 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.loading-card {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  padding: 18px 16px 18px;
  border: 1px solid rgba(41, 174, 232, 0.16);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 11%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.18) 7.5rem, transparent 12rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 252, 255, 0.78)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    0 24px 52px rgba(23, 50, 77, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.82);
  overflow: hidden auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  animation: loading-card-in 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.loading-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  background-image:
    linear-gradient(rgba(41, 174, 232, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 174, 232, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.loading-mascot-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  height: min(37svh, 274px);
  min-height: 214px;
  margin-top: 12px;
  place-items: center;
}

.loading-mascot-stage::before {
  content: "";
  position: absolute;
  width: min(68vw, 254px);
  aspect-ratio: 1;
  border-radius: 45% 55% 58% 42% / 48% 44% 56% 52%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(231, 247, 255, 0.76)),
    var(--sky-100);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.84),
    0 22px 46px rgba(41, 174, 232, 0.16);
}

.loading-mascot-stage::after {
  content: "";
  position: absolute;
  bottom: 22px;
  width: min(58vw, 222px);
  height: 20px;
  border-radius: 999px;
  background: rgba(23, 50, 77, 0.1);
  filter: blur(9px);
}

.loading-mascot {
  position: absolute;
  z-index: 2;
  width: min(66vw, 244px);
  max-height: 246px;
  object-fit: contain;
  opacity: 0;
  transform: translateY(12px) scale(0.96) rotate(-1deg);
  filter: drop-shadow(0 18px 18px rgba(23, 50, 77, 0.13));
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-loading-image="0"] .loading-note,
html[data-loading-image="1"] .loading-lab,
html[data-loading-image="2"] .loading-soul,
html[data-loading-image="3"] .loading-sleep {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(-1deg);
}

html[data-loading-complete="true"] .loading-note,
html[data-loading-complete="true"] .loading-lab,
html[data-loading-complete="true"] .loading-soul,
html[data-loading-complete="true"] .loading-sleep {
  opacity: 0;
  transform: translateY(12px) scale(0.96) rotate(-1deg);
}

html[data-loading-complete="true"] .loading-complete {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(-1deg);
}

.loading-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
}

.loading-kicker {
  display: inline-flex;
  min-height: 26px;
  margin: 0 0 11px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(41, 174, 232, 0.13);
  color: var(--sky-500);
  font-size: 12px;
  font-weight: 1000;
}

.loading-copy h2 {
  margin: 0;
  color: var(--navy);
  font-family:
    "Jalnan",
    "Pretendard",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: 0;
  word-break: keep-all;
  text-shadow: 0 4px 0 rgba(255, 255, 255, 0.88);
}

.loading-copy p:last-child {
  margin: 10px auto 0;
  max-width: 290px;
  color: rgba(37, 56, 75, 0.7);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
  word-break: keep-all;
}

.loading-copy p:last-child::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 8px;
  margin-left: 5px;
  background:
    radial-gradient(circle, var(--sky-500) 0 2px, transparent 2.5px) 0 50% / 8px 8px repeat-x;
  animation: loading-dot 900ms ease-in-out infinite;
}

html[data-loading-complete="true"] .loading-copy p:last-child::after {
  display: none;
}

.loading-steps {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  margin: 18px 0 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.loading-steps li {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid rgba(41, 174, 232, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  color: rgba(37, 56, 75, 0.58);
  font-size: 13px;
  font-weight: 900;
  transition:
    background 240ms ease,
    color 240ms ease,
    transform 240ms ease,
    box-shadow 240ms ease;
}

.loading-steps li span {
  position: relative;
  display: inline-grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: rgba(41, 174, 232, 0.12);
  color: var(--sky-500);
}

.loading-steps li span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.loading-steps li.is-active {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  box-shadow: 0 12px 24px rgba(41, 174, 232, 0.12);
}

.loading-steps li.is-active span {
  background: var(--sky-500);
  color: var(--white);
}

.loading-steps li.is-active span::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid rgba(41, 174, 232, 0.22);
  border-top-color: rgba(41, 174, 232, 0.68);
  border-radius: inherit;
  animation: loading-ring 900ms linear infinite;
}

.loading-steps li.is-done {
  color: rgba(37, 56, 75, 0.72);
}

.loading-steps li.is-done span {
  background: rgba(41, 174, 232, 0.18);
}

.loading-steps li.is-done span::before {
  width: 9px;
  height: 5px;
  border: solid var(--sky-500);
  border-width: 0 0 2px 2px;
  border-radius: 0;
  background: transparent;
  transform: rotate(-45deg) translate(1px, -1px);
}

.loading-result-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  margin-top: 14px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent),
    var(--sky-500);
  color: var(--white);
  font-family:
    "Pretendard",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  font-size: 17px;
  font-weight: 950;
  text-decoration: none;
  box-shadow:
    0 14px 28px rgba(41, 174, 232, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.98);
}

html[data-loading-complete="true"] .loading-result-button {
  pointer-events: auto;
  animation: cta-arrive 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.result-page {
  display: none;
  width: min(100%, 430px);
  height: 100%;
  min-height: 0;
  padding: calc(18px + env(safe-area-inset-top)) 18px calc(28px + env(safe-area-inset-bottom));
  flex-direction: column;
  color: var(--ink);
  overflow: hidden auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

html[data-view="result"] .result-page {
  display: flex;
  animation: page-wake 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.result-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.result-copy {
  min-width: 0;
  text-align: left;
}

.result-kicker {
  display: inline-flex;
  min-height: 26px;
  margin: 0 0 12px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(41, 174, 232, 0.13);
  color: var(--sky-500);
  font-size: 12px;
  font-weight: 1000;
}

.result-copy h2 {
  margin: 0;
  color: var(--navy);
  font-family:
    "Jalnan",
    "Pretendard",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 4px 0 rgba(255, 255, 255, 0.88);
}

.result-copy p:last-child {
  margin: 8px 0 0;
  color: rgba(37, 56, 75, 0.72);
  font-size: 14px;
  font-weight: 850;
  word-break: keep-all;
}

.result-restart {
  display: grid;
  flex: 0 0 94px;
  justify-items: center;
  gap: 3px;
  margin-top: -6px;
  color: rgba(37, 56, 75, 0.64);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.28;
  text-align: center;
  text-decoration: none;
  word-break: keep-all;
  -webkit-tap-highlight-color: transparent;
}

.result-restart img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(41, 174, 232, 0.14));
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.result-restart:active img {
  transform: translateY(1px) scale(0.96);
  filter: drop-shadow(0 5px 9px rgba(41, 174, 232, 0.14));
}

.result-restart span {
  display: block;
}

.result-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  flex: 0 0 auto;
}

.result-tabs button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(41, 174, 232, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  color: rgba(37, 56, 75, 0.68);
  font: inherit;
  font-size: 14px;
  font-weight: 950;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.result-tabs button.is-active {
  transform: translateY(-1px);
  background: var(--sky-500);
  color: var(--white);
  box-shadow: none;
}

.result-tabs button.is-unavailable,
.result-tabs button:disabled {
  border-color: rgba(37, 56, 75, 0.07);
  background: rgba(255, 255, 255, 0.42);
  color: rgba(37, 56, 75, 0.34);
  cursor: not-allowed;
}

.result-plans {
  min-height: 0;
  margin-top: 12px;
  overflow: hidden;
  flex: 1 1 auto;
}

.result-empty {
  display: grid;
  min-height: 260px;
  place-content: center;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(41, 174, 232, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy);
  text-align: center;
  box-shadow: none;
}

.result-empty strong {
  font-size: 17px;
  font-weight: 1000;
}

.result-empty p {
  margin: 0;
  color: rgba(37, 56, 75, 0.64);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
  word-break: keep-all;
}

.result-empty-compact {
  min-height: 180px;
}

.result-plan {
  display: none;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  gap: 8px;
}

.result-plan.is-active {
  display: flex;
  animation: rise-in 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.result-shortage-note {
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(41, 174, 232, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--navy);
}

.result-shortage-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 1000;
}

.result-shortage-note p {
  margin: 0;
  color: rgba(37, 56, 75, 0.62);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
  word-break: keep-all;
}

.result-plan-summary {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(41, 174, 232, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.result-plan-summary span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-bottom: 7px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(41, 174, 232, 0.12);
  color: var(--sky-500);
  font-size: 11px;
  font-weight: 1000;
}

.result-plan-summary strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
  font-weight: 1000;
}

.result-plan-summary p {
  margin: 5px 0 0;
  color: rgba(37, 56, 75, 0.62);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  word-break: keep-all;
}

.result-timetable {
  position: relative;
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  grid-template-columns: 30px repeat(5, minmax(0, 1fr));
  grid-template-rows: 24px repeat(22, 26px);
  border: 1px solid rgba(41, 174, 232, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: none;
  overflow: hidden auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.result-timetable::before {
  content: "";
  position: absolute;
  inset: 24px 0 0 30px;
  background-image:
    linear-gradient(rgba(41, 174, 232, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 174, 232, 0.07) 1px, transparent 1px);
  background-size: 100% 26px, calc(100% / 5) 100%;
  pointer-events: none;
}

.result-timetable::-webkit-scrollbar {
  width: 7px;
}

.result-timetable::-webkit-scrollbar-track {
  background: rgba(41, 174, 232, 0.06);
}

.result-timetable::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(41, 174, 232, 0.32);
}

.result-day-head,
.result-time {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.result-day-head {
  color: var(--sky-500);
  font-size: 11px;
  font-weight: 1000;
}

.result-time {
  color: rgba(37, 56, 75, 0.54);
  font-size: 9px;
  font-weight: 850;
}

.result-time-head {
  grid-column: 1;
  grid-row: 1;
}

.result-course {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  margin: 1px;
  padding: 2px 3px;
  border: 1px solid rgba(37, 56, 75, 0.08);
  border-radius: 9px;
  color: #111827;
  font-size: 8.5px;
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  word-break: keep-all;
  box-shadow: none;
  overflow: hidden;
}

.result-course strong,
.result-course span,
.result-course small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-course strong {
  font-size: 8.5px;
  font-weight: 1000;
}

.result-course span {
  font-size: 7.5px;
  font-weight: 850;
}

.result-course small {
  font-size: 6.8px;
  font-weight: 750;
  color: rgba(17, 24, 39, 0.72);
}

.block-ai-math { grid-column: 3; grid-row: 2 / 5; background: #2fafe6; }
.block-data { grid-column: 2; grid-row: 7 / 9; background: #5478e4; }
.block-ml { grid-column: 5; grid-row: 8 / 10; background: #5fbfba; }
.block-culture { grid-column: 4; grid-row: 4 / 6; background: #ff9a8c; }
.block-writing { grid-column: 6; grid-row: 6 / 8; background: #f3b947; }
.block-startup { grid-column: 2; grid-row: 10 / 12; background: #8c77e8; }

.block-b-ai { grid-column: 5; grid-row: 6 / 9; background: #2fafe6; }
.block-b-web { grid-column: 2; grid-row: 8 / 10; background: #5fbfba; }
.block-b-stat { grid-column: 4; grid-row: 7 / 9; background: #5478e4; }
.block-b-psy { grid-column: 3; grid-row: 4 / 6; background: #ff9a8c; }
.block-b-movie { grid-column: 6; grid-row: 9 / 11; background: #f3b947; }
.block-b-career { grid-column: 2; grid-row: 11 / 13; background: #8c77e8; }

.block-c-ai { grid-column: 3; grid-row: 2 / 5; background: #2fafe6; }
.block-c-data { grid-column: 5; grid-row: 2 / 4; background: #5478e4; }
.block-c-os { grid-column: 3; grid-row: 7 / 10; background: #5fbfba; }
.block-c-design { grid-column: 5; grid-row: 5 / 7; background: #ff9a8c; }
.block-c-human { grid-column: 3; grid-row: 11 / 13; background: #f3b947; }
.block-c-speech { grid-column: 5; grid-row: 9 / 11; background: #8c77e8; }

.result-tags {
  display: none;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px;
}

.result-tags span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(37, 56, 75, 0.72);
  font-size: 11px;
  font-weight: 900;
}

.result-actions {
  display: grid;
  grid-template-columns: 9fr 1fr;
  gap: 8px;
  flex: 0 0 auto;
  margin-top: 7px;
}

.result-explain-button,
.result-save-button {
  display: inline-flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 950;
}

.result-explain-button {
  background: var(--navy);
  color: var(--white);
}

.result-save-button {
  min-width: 44px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  font-size: 18px;
  box-shadow: inset 0 0 0 1px rgba(41, 174, 232, 0.18);
}

.result-explain-button:disabled,
.result-save-button:disabled {
  opacity: 0.42;
}

.explain-backdrop,
.detail-backdrop {
  position: absolute;
  inset: 0;
  z-index: 80;
  background: rgba(17, 32, 47, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.explain-sheet {
  position: absolute;
  display: flex;
  flex-direction: column;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: 14px;
  z-index: 90;
  max-height: min(72dvh, 570px);
  min-height: 0;
  padding: 12px 16px 16px;
  border: 1px solid rgba(41, 174, 232, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 231, 166, 0.32), transparent 9rem),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(23, 50, 77, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition:
    opacity 240ms ease,
    transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-explain-open="true"] .explain-backdrop,
html[data-detail-open="true"] .detail-backdrop {
  opacity: 1;
  pointer-events: auto;
}

html[data-explain-open="true"] .explain-sheet {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sheet-handle {
  width: 42px;
  height: 5px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: rgba(37, 56, 75, 0.16);
}

.explain-header,
.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.explain-header span,
.detail-header span {
  color: var(--navy);
  font-size: 15px;
  font-weight: 1000;
}

.explain-header button,
.detail-header button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(41, 174, 232, 0.12);
  color: var(--navy);
  font: inherit;
  font-size: 20px;
  font-weight: 900;
}

.explain-sheet-body {
  display: grid;
  flex: 1 1 auto;
  gap: 12px;
  min-height: 0;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  overflow: hidden auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.explain-summary {
  padding: 14px;
  border-radius: 18px;
  background: rgba(226, 246, 255, 0.68);
}

.explain-summary span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--sky-500);
  font-size: 12px;
  font-weight: 1000;
}

.explain-summary h3 {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.42;
  word-break: keep-all;
}

.explain-reasons,
.course-reason-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.explain-reasons li,
.course-reason-list li {
  padding: 12px;
  border: 1px solid rgba(41, 174, 232, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.explain-reasons strong,
.course-reason-list strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
  font-weight: 1000;
}

.explain-reasons p,
.course-reason-list p,
.course-reason-list span {
  display: block;
  margin: 5px 0 0;
  color: rgba(37, 56, 75, 0.66);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.38;
  word-break: keep-all;
}

.decision-section,
.explain-score-section {
  display: grid;
  gap: 8px;
}

.decision-section h3,
.explain-score-section h3 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 1000;
}

.explain-score-section > p {
  margin: 0 0 2px;
  color: rgba(37, 56, 75, 0.6);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  word-break: keep-all;
}

.decision-section h4,
.decision-matrix h4 {
  margin: 8px 0 0;
  color: var(--sky-500);
  font-size: 12px;
  font-weight: 1000;
}

.decision-row {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(41, 174, 232, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.decision-row div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.decision-row span {
  color: rgba(37, 56, 75, 0.58);
  font-size: 12px;
  font-weight: 900;
}

.decision-row strong {
  color: var(--navy);
  font-size: 13px;
  font-weight: 1000;
  text-align: right;
}

.decision-row p {
  margin: 0;
  color: rgba(37, 56, 75, 0.68);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.42;
  word-break: keep-all;
}

.decision-matrix {
  display: grid;
  gap: 8px;
}

.explain-scores {
  display: grid;
  gap: 9px;
  padding: 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.explain-score-row {
  display: grid;
  gap: 6px;
}

.explain-score-row div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--navy);
  font-size: 12px;
  font-weight: 1000;
}

.explain-score-row span {
  color: var(--sky-500);
}

.explain-score-row i {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(41, 174, 232, 0.12);
}

.explain-score-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8bdcf9, var(--sky-500));
}

.detail-open-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--sky-500);
  color: var(--white);
  font: inherit;
  font-size: 14px;
  font-weight: 1000;
}

.detail-modal {
  position: absolute;
  inset: calc(18px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom));
  z-index: 110;
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 16px;
  border: 1px solid rgba(41, 174, 232, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(23, 50, 77, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.98);
  transition:
    opacity 220ms ease,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-detail-open="true"] .detail-modal {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.detail-body {
  display: grid;
  gap: 12px;
  min-height: 0;
  margin-top: 14px;
  overflow: hidden auto;
}

.detail-section {
  padding: 14px;
  border: 1px solid rgba(41, 174, 232, 0.14);
  border-radius: 18px;
  background: rgba(245, 252, 255, 0.82);
}

.detail-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--sky-500);
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.detail-section h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 1000;
}

.vector-label-row,
.vector-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.vector-label-row span {
  color: rgba(37, 56, 75, 0.62);
  font-size: 8px;
  font-weight: 900;
  text-align: center;
  word-break: keep-all;
}

.vector-row span {
  display: grid;
  min-height: 30px;
  place-items: center;
  border-radius: 8px;
  background: rgba(41, 174, 232, 0.12);
  color: var(--navy);
  font-size: 11px;
  font-weight: 1000;
}

.detail-section pre {
  margin: 0;
  padding: 12px;
  overflow-x: auto;
  border-radius: 14px;
  background: #122033;
  color: #dff7ff;
}

.detail-section code {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre;
}

.formula-line,
.formula-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.formula-line + .formula-line {
  border-top: 1px solid rgba(41, 174, 232, 0.12);
}

.formula-line code {
  color: rgba(37, 56, 75, 0.72);
  font-size: 11px;
}

.formula-total {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(41, 174, 232, 0.12);
  font-weight: 1000;
}

@media (min-width: 700px) {
  body {
    display: grid;
    place-items: center;
    padding: 36px;
    position: static;
    background:
      radial-gradient(circle at 18% 10%, rgba(255, 216, 109, 0.32), transparent 14rem),
      radial-gradient(circle at 82% 18%, rgba(86, 197, 243, 0.36), transparent 20rem),
      linear-gradient(135deg, #fbfeff 0%, var(--sky-100) 56%, #ddf5ff 100%);
  }

.page-shell {
    width: 430px;
    height: min(852px, calc(100vh - 72px));
    border: 1px solid rgba(23, 50, 77, 0.08);
    border-radius: 34px;
    background:
      radial-gradient(circle at 20% 10%, rgba(255, 216, 109, 0.32), transparent 9rem),
      radial-gradient(circle at 82% 22%, rgba(86, 197, 243, 0.28), transparent 13rem),
      linear-gradient(180deg, #fbfeff 0%, var(--sky-100) 64%, #ddf5ff 100%);
    box-shadow: 0 34px 86px rgba(23, 50, 77, 0.16);
    overflow: hidden;
  }

  .hero {
    width: 430px;
  }
}

@media (max-height: 740px) {
  .hero {
    padding-top: calc(22px + env(safe-area-inset-top));
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .mascot-stage {
    flex-basis: min(29svh, 194px);
    min-height: 168px;
    margin-top: 0;
  }

  .mascot {
    width: min(50vw, 190px);
  }

  .message {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.42;
  }

  .flow-preview {
    margin-top: 18px;
    gap: 6px;
  }

  .flow-step {
    min-height: 48px;
    border-radius: 15px;
    font-size: 11px;
    gap: 4px;
  }

  .step-number {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .start-button {
    min-height: 54px;
    margin-bottom: 0;
  }
}

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