:root {
  --ink: #1f2141;
  --purple: #653af4;
  --purple-deep: #37206f;
  --purple-pale: #eeeaff;
  --yellow: #ffdb37;
  --blue-white: #f5f8ff;
  --line: #dbe1f1;
  --muted: #6f7892;
  --success: #1f7a4c;
  --danger: #c44450;
}

* { box-sizing: border-box; }
html { background: #e8eefb; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: #e8eefb;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
button { cursor: pointer; }
.app-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--blue-white);
  box-shadow: 0 0 40px rgba(55, 64, 107, .13);
}
.site-header {
  height: 64px;
  padding: 0 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 248, 255, .92);
}
.brand { display: block; width: 92px; height: 42px; }
.logo-crop { display: grid; width: 92px; height: 42px; place-items: center start; }
.logo-crop img { display: block; width: 92px; height: auto; }
.header-label { margin: 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .55px; }
.header-label span { color: var(--purple); font-size: 14px; }
.screen { width: 100%; min-height: calc(100vh - 64px); }
.hidden { display: none !important; }

/* home */
.hero-screen { padding: 28px 23px 20px; }
.eyebrow { margin: 0 0 14px; color: var(--purple); font-size: 11px; font-weight: 700; letter-spacing: -.1px; }
.eyebrow span { display: inline-block; width: 8px; height: 8px; margin-right: 7px; background: var(--yellow); transform: rotate(45deg); }
h1, h2, p { margin-top: 0; }
.hero-copy h1 { margin: 0 0 14px; font-size: clamp(40px, 12.8vw, 52px); line-height: .98; letter-spacing: -3.9px; font-weight: 800; }
.hero-copy h1 em { position: relative; z-index: 0; color: var(--purple); font-style: normal; }
.hero-copy h1 em::after { content: ""; position: absolute; z-index: -1; right: -4px; bottom: 1px; left: -2px; height: 11px; background: var(--yellow); transform: rotate(-1.6deg); }
.hero-description { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.5; letter-spacing: -.35px; }
.scroll-prompt { margin-top: 15px; font-size: 10px; font-weight: 700; }
.scroll-prompt span { display: inline-grid; width: 23px; height: 23px; margin-right: 6px; place-items: center; border: 1.4px solid var(--ink); border-radius: 50%; }
.hero-art { height: 213px; margin: 1px -8px 0; position: relative; }
.orbit { position: absolute; border: 1.4px solid var(--purple); border-radius: 50%; transform: rotate(-25deg); }
.orbit-one { width: 288px; height: 132px; top: 46px; left: 34px; }
.orbit-two { width: 262px; height: 116px; top: 52px; left: 46px; border-color: var(--yellow); transform: rotate(27deg); }
.code-window { position: absolute; z-index: 1; top: 51px; left: 62px; width: min(76vw, 296px); padding: 13px 17px 15px; color: #f8f7ff; border: 1.7px solid var(--ink); background: var(--purple-deep); box-shadow: 6px 6px 0 var(--yellow); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; line-height: 1.72; transform: rotate(3deg); }
.window-bar { display: flex; gap: 5px; margin-bottom: 12px; }.window-bar span { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }.window-bar span:nth-child(2) { background: #cdbfff; }.window-bar span:nth-child(3) { background: #fff; }
.code-window p { margin: 0; }.code-window b { color: var(--yellow); }.code-window i { color: #e5dfff; font-style: normal; }.code-window strong { color: #fff; }.code-window u { color: #a6ffa7; text-decoration: none; }.indent { padding-left: 15px; }.indent-2 { padding-left: 30px; }
.sticker { position: absolute; z-index: 2; display: grid; place-items: center; font-weight: 800; }.sticker-star { top: 16px; right: 17px; color: var(--purple); font-size: 47px; transform: rotate(18deg); }.sticker-bracket { bottom: 18px; left: 21px; width: 51px; height: 42px; color: var(--purple-deep); border: 1.4px solid var(--ink); background: var(--yellow); font-size: 14px; transform: rotate(-12deg); }.sticker-arrow { right: 25px; bottom: 17px; width: 42px; height: 42px; color: #fff; border-radius: 50%; background: var(--purple); font-size: 23px; transform: rotate(-15deg); }
.difficulty-area { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }.difficulty-heading { margin-bottom: 10px; }.difficulty-heading p { margin: 0 0 3px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .55px; }.difficulty-heading h2 { margin: 0; font-size: 18px; letter-spacing: -1px; }
.difficulty-grid { display: grid; justify-items: center; gap: 10px; }.difficulty-card { width: min(100%, 332px); min-height: 70px; padding: 12px 50px 11px 57px; position: relative; overflow: hidden; color: var(--ink); border: 1px solid rgba(52, 43, 91, .16); border-radius: 999px; background: #fff; box-shadow: 0 4px 0 rgba(58, 48, 100, .18), 0 8px 14px rgba(52, 43, 91, .12); text-align: left; transition: transform .16s ease, box-shadow .16s ease; }.difficulty-card:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(58, 48, 100, .18), 0 3px 7px rgba(52, 43, 91, .12); }.difficulty-card:hover { transform: translateY(-1px); box-shadow: 0 5px 0 rgba(58, 48, 100, .2), 0 10px 17px rgba(52, 43, 91, .13); }.difficulty-card .level-number { position: absolute; top: 13px; right: 42px; margin: 0; color: rgba(31, 33, 65, .48); font-size: 9px; font-weight: 700; }.difficulty-card strong { display: block; font-size: 18px; letter-spacing: -1.15px; }.difficulty-card small { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; }.level-icon { position: absolute; top: 50%; left: 15px; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: var(--purple); background: rgba(255, 255, 255, .7); font-size: 19px; font-weight: 800; transform: translateY(-50%); }.card-arrow { position: absolute; top: 50%; right: 17px; color: var(--purple); font-size: 18px; transform: translateY(-50%); }.junior { background: #fff6c8; }.senior { background: #eeeaff; }.celestial { color: #fff; border-color: transparent; background: #6545cf; box-shadow: 0 4px 0 #3d268d, 0 8px 14px rgba(52, 43, 91, .2); }.celestial .level-number, .celestial small { color: #e5dcff; }.celestial .level-icon { color: #4b2c9a; background: var(--yellow); }.celestial .card-arrow { color: var(--yellow); }

/* quiz */
.quiz-screen { padding: 24px 20px 38px; }.quiz-topbar { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 700; }.text-button { padding: 3px 0; color: var(--ink); border: 0; border-bottom: 1px solid transparent; background: transparent; font-size: 12px; font-weight: 700; }.text-button:hover { border-bottom-color: var(--ink); }.quiz-level-badge { padding: 6px 9px; border: 1.3px solid var(--ink); font-size: 10px; }.quiz-topbar p { margin: 0; }.progress-track { height: 7px; margin: 20px 0 29px; overflow: hidden; border-radius: 99px; background: #e2e7f4; }.progress-bar { width: 20%; height: 100%; border-radius: inherit; background: var(--purple); transition: width .28s ease; }
.question-side { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; }.question-side p { margin: 0; font-size: 9px; font-weight: 700; line-height: 1.65; letter-spacing: .5px; }.question-mark { display: grid; width: 39px; height: 39px; place-items: center; color: var(--purple); border: 1.8px solid var(--purple); border-radius: 50%; font-size: 28px; font-weight: 800; }.question-card { padding: 25px 18px 27px; border: 1.5px solid var(--ink); background: #fff; box-shadow: 6px 6px 0 var(--yellow); }.question-type { margin-bottom: 13px; color: var(--purple); font-size: 10px; font-weight: 800; letter-spacing: .55px; }.question-card h2 { min-height: 0; margin-bottom: 22px; font-size: 20px; line-height: 1.45; letter-spacing: -1.1px; white-space: pre-line; }.choice-list { display: grid; gap: 8px; }.choice { display: flex; width: 100%; align-items: center; gap: 11px; padding: 11px 10px; color: var(--ink); border: 1.3px solid #bbc4d8; background: #fff; text-align: left; font-size: 12px; line-height: 1.4; transition: all .14s ease; }.choice:hover:not(:disabled) { border-color: var(--purple); background: #f6f4ff; }.choice-letter { display: grid; flex: 0 0 24px; width: 24px; height: 24px; place-items: center; color: var(--purple); border: 1.3px solid var(--purple); border-radius: 50%; font-size: 10px; font-weight: 700; }.choice.correct { color: #155e39; border-color: var(--success); background: #e1f9e9; }.choice.correct .choice-letter { color: #fff; border-color: var(--success); background: var(--success); }.choice.wrong { color: #9a2b36; border-color: var(--danger); background: #ffeaec; }.choice.wrong .choice-letter { color: #fff; border-color: var(--danger); background: var(--danger); }.choice:disabled { cursor: default; }.answer-feedback { min-height: 21px; margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }.answer-feedback.good { color: var(--success); }.answer-feedback.bad { color: var(--danger); }.next-button, .recruit-button, .retry-button { padding: 13px 16px; border: 1.5px solid var(--ink); font-size: 12px; font-weight: 800; }.next-button { float: right; margin-top: 3px; color: #fff; background: var(--purple); }.next-button span, .recruit-button span, .retry-button span { margin-left: 8px; font-size: 17px; }.next-button:hover, .recruit-button:hover { background: var(--purple-deep); }

/* result */
.result-screen { padding: 59px 23px 48px; text-align: center; }.result-burst { position: relative; height: 66px; }.result-burst span { position: absolute; color: var(--yellow); font-size: 42px; }.result-burst span:nth-child(1) { top: 0; left: calc(50% - 22px); color: var(--purple); font-size: 58px; }.result-burst span:nth-child(2) { top: 25px; left: 20%; }.result-burst span:nth-child(3) { top: 25px; right: 20%; color: var(--purple); font-size: 26px; }.result-eyebrow { margin-bottom: 8px; }.result-screen h2 { margin: 0 auto 26px; max-width: 340px; font-size: 31px; line-height: 1.18; letter-spacing: -2.2px; }.score-card { display: inline-flex; width: 275px; flex-wrap: wrap; align-items: baseline; justify-content: center; padding: 19px 17px 15px; border: 1.5px solid var(--ink); background: #e7ddff; box-shadow: 6px 6px 0 var(--purple); }.score-card p { flex-basis: 100%; margin: 0; font-size: 10px; font-weight: 800; letter-spacing: .6px; }.score-card strong { font-size: 68px; line-height: 1; letter-spacing: -5px; }.score-card > span { margin-left: 7px; font-size: 11px; font-weight: 700; }.score-detail { flex-basis: 100%; margin-top: 4px; font-size: 11px; font-weight: 700; }.result-message { margin: 30px auto 24px; color: var(--muted); font-size: 13px; line-height: 1.68; letter-spacing: -.35px; white-space: pre-line; }.result-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }.recruit-button, .retry-button { min-width: 244px; padding: 14px 22px; border: 1px solid rgba(52, 43, 91, .16); border-radius: 999px; box-shadow: 0 5px 0 rgba(58, 48, 100, .2), 0 10px 16px rgba(52, 43, 91, .12); font-size: 13px; font-weight: 800; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }.recruit-button:active, .retry-button:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(58, 48, 100, .2), 0 3px 6px rgba(52, 43, 91, .12); }.recruit-button { color: #fff; border-color: transparent; background: #6545cf; box-shadow: 0 5px 0 #3d268d, 0 10px 16px rgba(52, 43, 91, .18); }.retry-button { color: var(--ink); background: #f9f9ff; }.recruit-button:hover { background: #5736bb; }.retry-button:hover { background: #f0edff; }

@media (min-width: 481px) { .app-shell { min-height: 100vh; } }
@media (max-width: 350px) { .hero-copy h1 { font-size: 38px; }.quiz-level-badge { display: none; }.question-card h2 { font-size: 18px; } }

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