:root {
  --ink: #17263b;
  --ink-soft: #2c3b4d;
  --cream: #f7f1e7;
  --paper: #fffdf9;
  --muted: #7b7d86;
  --line: #e5ded2;
  --lime: #d9ff65;
  --orange: #ff8d61;
  --aqua: #b7eee4;
  --purple: #bdb0ff;
  --shadow: 0 24px 60px rgba(23, 38, 59, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #e7e2d9;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #e7e2d9;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

button,
a {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.page-background {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.background-shape {
  position: absolute;
  display: block;
  border-radius: 50%;
  opacity: 0.45;
  filter: blur(1px);
}

.background-shape-one {
  top: 9%;
  left: 7%;
  width: 200px;
  height: 200px;
  background: var(--aqua);
}

.background-shape-two {
  right: 6%;
  bottom: 12%;
  width: 250px;
  height: 250px;
  background: var(--purple);
}

.background-shape-three {
  top: 46%;
  right: 25%;
  width: 100px;
  height: 100px;
  background: var(--orange);
}

.app-shell {
  position: relative;
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 0 0 1px rgba(23, 38, 59, 0.04), var(--shadow);
}

.app-shell::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  height: 280px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent);
  content: "";
  pointer-events: none;
}

.topbar,
main,
.app-footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 0 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 112px;
  height: 30px;
  overflow: hidden;
  border-radius: 3px;
  background: #fff;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.topbar-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8e8d8a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.topbar-label i,
.quiz-footer i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 141, 97, 0.12);
}

.screen {
  min-height: calc(100vh - 116px);
}

.start-screen {
  display: flex;
  flex-direction: column;
  padding: 8px 28px 28px;
}

.start-art {
  position: relative;
  height: 322px;
  flex: 0 0 322px;
  overflow: hidden;
}

.art-glow {
  position: absolute;
  top: 42px;
  left: 50%;
  width: 235px;
  height: 235px;
  border-radius: 50%;
  background: rgba(183, 238, 228, 0.62);
  filter: blur(15px);
  transform: translateX(-50%);
}

.art-ring {
  position: absolute;
  left: 50%;
  border: 1px solid rgba(23, 38, 59, 0.13);
  border-radius: 50%;
  transform: translateX(-50%) rotate(-22deg);
}

.art-ring-large {
  top: 18px;
  width: 280px;
  height: 280px;
}

.art-ring-small {
  top: 61px;
  width: 195px;
  height: 195px;
  border-color: rgba(255, 141, 97, 0.36);
  transform: translateX(-50%) rotate(30deg);
}

.art-route {
  position: absolute;
  width: 112px;
  border-top: 1.5px dashed rgba(23, 38, 59, 0.34);
  transform-origin: left center;
}

.art-route span {
  position: absolute;
  top: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.art-route span:nth-child(1) {
  left: 9%;
}

.art-route span:nth-child(2) {
  left: 47%;
  background: var(--orange);
}

.art-route span:nth-child(3) {
  right: 0;
  background: var(--lime);
}

.art-route-one {
  top: 99px;
  left: 25px;
  transform: rotate(26deg);
}

.art-route-two {
  right: 19px;
  bottom: 104px;
  width: 96px;
  transform: rotate(-29deg);
}

.art-route-two span:nth-child(1) {
  left: 16%;
  background: var(--purple);
}

.art-route-two span:nth-child(2) {
  right: 0;
  background: var(--orange);
}

.art-plane {
  position: absolute;
  top: 68px;
  right: 65px;
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  color: var(--orange);
  transform: rotate(18deg);
  animation: float-plane 4.5s ease-in-out infinite;
}

.art-plane svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(4px 8px 0 rgba(255, 141, 97, 0.12));
}

.art-box {
  position: absolute;
  bottom: 48px;
  left: 50%;
  width: 116px;
  height: 94px;
  border: 2px solid var(--ink);
  border-radius: 8px 8px 13px 13px;
  background: linear-gradient(135deg, #e8ff89, var(--lime));
  box-shadow: 12px 14px 0 rgba(23, 38, 59, 0.12);
  transform: translateX(-50%) rotate(-7deg);
}

.art-box::before {
  position: absolute;
  top: -15px;
  left: 6px;
  width: 99px;
  height: 21px;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #c9ec70;
  content: "";
}

.box-tape {
  position: absolute;
  top: -14px;
  left: 45px;
  z-index: 2;
  width: 20px;
  height: 105px;
  border-right: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.25);
}

.box-side {
  position: absolute;
  right: -10px;
  bottom: -2px;
  width: 23px;
  height: 82px;
  border: 2px solid var(--ink);
  border-left: 0;
  border-radius: 0 7px 10px 0;
  background: #b4d95d;
  transform: skewY(-18deg);
  transform-origin: bottom left;
}

.box-label {
  position: absolute;
  bottom: 17px;
  left: 14px;
  padding: 3px 5px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.44);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.art-chart {
  position: absolute;
  right: 15px;
  bottom: 57px;
  width: 105px;
  height: 78px;
  padding: 15px 13px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.88);
  box-shadow: 8px 9px 0 rgba(23, 38, 59, 0.09);
  transform: rotate(7deg);
}

.chart-bar {
  position: absolute;
  bottom: 13px;
  width: 11px;
  border: 1.5px solid var(--ink);
  border-radius: 3px 3px 0 0;
  background: var(--aqua);
}

.chart-bar-one {
  left: 15px;
  height: 22px;
}

.chart-bar-two {
  left: 32px;
  height: 32px;
  background: var(--purple);
}

.chart-bar-three {
  left: 49px;
  height: 40px;
  background: var(--orange);
}

.chart-bar-four {
  left: 66px;
  height: 50px;
  background: var(--lime);
}

.chart-arrow {
  position: absolute;
  top: 9px;
  right: 10px;
  color: var(--orange);
  font-size: 18px;
  font-weight: 900;
}

.art-sticker {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 9px;
  box-shadow: 5px 6px 0 rgba(23, 38, 59, 0.1);
  transform: rotate(-8deg);
}

.sticker-time {
  top: 40px;
  left: 31px;
  gap: 6px;
  padding: 7px 9px 7px 7px;
  background: var(--paper);
}

.sticker-time b {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 6px;
  color: var(--ink);
  background: var(--orange);
  font-size: 15px;
}

.sticker-time span {
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.sticker-fast {
  right: 24px;
  bottom: 25px;
  flex-direction: column;
  align-items: flex-start;
  padding: 7px 10px 8px;
  background: var(--purple);
  transform: rotate(8deg);
}

.sticker-fast span {
  font-size: 10px;
  font-weight: 700;
}

.sticker-fast b {
  font-size: 13px;
}

.art-dot {
  position: absolute;
  display: block;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.art-dot-orange {
  top: 33px;
  right: 28px;
  background: var(--orange);
}

.art-dot-blue {
  bottom: 34px;
  left: 24px;
  background: var(--aqua);
}

.start-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #8c8a84;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.5;
}

.kicker-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 4px 0 0 -1px var(--aqua);
}

.start-copy h1 {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(48px, 13vw, 67px);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.98;
}

.start-copy h1 em,
.result-intro h2 em {
  color: var(--orange);
  font-style: normal;
}

.start-description {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  min-height: 59px;
  border: 1.5px solid var(--ink);
  border-radius: 17px;
  color: var(--ink);
  background: var(--lime);
  box-shadow: 5px 6px 0 var(--ink);
  font-size: 15px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button:hover {
  background: #e5ff8e;
  transform: translate(-2px, -2px);
  box-shadow: 7px 8px 0 var(--ink);
}

.primary-button:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 3px 0 var(--ink);
}

.primary-button b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--lime);
  background: var(--ink);
  font-size: 18px;
}

.start-button {
  width: min(100%, 276px);
  margin-top: 28px;
}

.start-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 20px 0 0;
  color: #aaa59b;
  font-size: 11px;
}

.start-note span {
  color: var(--orange);
}

.start-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: auto;
  padding-top: 30px;
  color: #aaa69d;
  font-size: 10px;
}

.bottom-separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--orange);
}

/* Quiz screen */
.quiz-screen {
  display: flex;
  flex-direction: column;
  padding: 12px 28px 24px;
}

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.64);
  font-size: 19px;
  transition: background 180ms ease, transform 180ms ease;
}

.icon-button:hover {
  background: #fff;
  transform: translateX(-2px);
}

.progress-copy {
  flex: 1;
}

.progress-copy > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.progress-copy span,
.progress-copy b {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.progress-copy span {
  color: #a4a096;
}

.progress-copy b {
  color: var(--orange);
}

.progress-track {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 10px;
  background: #e8e0d3;
}

.progress-track span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  transition: width 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-mark {
  color: var(--orange);
  font-size: 18px;
}

.question-stage {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 28px 0 22px;
  text-align: center;
}

.question-kicker {
  margin: 0;
  color: #a09c94;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.question-art {
  display: grid;
  width: 118px;
  height: 118px;
  margin: 19px 0 21px;
  place-items: center;
}

.mini-art {
  position: relative;
  width: 100%;
  height: 100%;
}

.mini-art::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(23, 38, 59, 0.12);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.mini-package {
  position: absolute;
  top: 32px;
  left: 36px;
  width: 51px;
  height: 45px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--orange);
  box-shadow: 7px 8px 0 var(--aqua);
  transform: rotate(-8deg);
}

.mini-package::before {
  position: absolute;
  top: -9px;
  left: 5px;
  width: 37px;
  height: 12px;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: #ffb18d;
  content: "";
}

.mini-package::after {
  position: absolute;
  top: -8px;
  left: 20px;
  width: 8px;
  height: 51px;
  border-right: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.25);
  content: "";
}

.mini-coins::after {
  position: absolute;
  right: 18px;
  bottom: 28px;
  width: 24px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 -7px 0 -1px var(--lime), 0 -7px 0 1px var(--ink), 0 -14px 0 -1px var(--lime), 0 -14px 0 1px var(--ink);
  content: "";
  transform: rotate(-8deg);
}

.mini-clock {
  position: absolute;
  top: 27px;
  left: 31px;
  width: 61px;
  height: 61px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 7px 8px 0 var(--purple);
}

.mini-clock::before,
.mini-clock::after {
  position: absolute;
  left: 50%;
  width: 3px;
  border-radius: 3px;
  background: var(--ink);
  content: "";
  transform-origin: bottom center;
}

.mini-clock::before {
  top: 12px;
  height: 20px;
  transform: translateX(-50%) rotate(23deg);
}

.mini-clock::after {
  top: 28px;
  height: 15px;
  transform: translateX(-50%) rotate(-48deg);
}

.mini-grid {
  position: absolute;
  top: 31px;
  left: 24px;
  width: 70px;
  height: 57px;
  background-image: linear-gradient(var(--ink) 1.5px, transparent 1.5px), linear-gradient(90deg, var(--ink) 1.5px, transparent 1.5px);
  background-size: 23px 19px;
  opacity: 0.95;
  transform: rotate(-6deg);
}

.mini-grid::after {
  position: absolute;
  right: -8px;
  top: -14px;
  width: 23px;
  height: 23px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  content: "↗";
  font-size: 14px;
  font-weight: 900;
  line-height: 19px;
  text-align: center;
}

.mini-truck {
  position: absolute;
  top: 40px;
  left: 24px;
  width: 66px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: var(--purple);
}

.mini-truck::before {
  position: absolute;
  right: -26px;
  bottom: -2px;
  width: 27px;
  height: 24px;
  border: 2px solid var(--ink);
  border-radius: 0 6px 6px 0;
  background: var(--orange);
  content: "";
}

.mini-truck::after {
  position: absolute;
  right: 7px;
  bottom: -12px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: -49px 0 0 -2px var(--paper), -49px 0 0 0 var(--ink);
  content: "";
}

.mini-platform {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 59px;
  height: 59px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--lime);
  box-shadow: 8px 8px 0 var(--orange);
  transform: rotate(-7deg);
}

.mini-platform::before {
  position: absolute;
  top: 17px;
  left: 15px;
  width: 25px;
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
  content: "";
}

.mini-platform::after {
  position: absolute;
  right: 10px;
  bottom: 9px;
  color: var(--ink);
  content: "＋";
  font-size: 21px;
  font-weight: 900;
}

.question-stage h2 {
  max-width: 420px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(25px, 7vw, 33px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.25;
}

.question-hint {
  margin: 11px 0 0;
  color: #aaa59d;
  font-size: 11px;
}

.options-list {
  display: grid;
  width: 100%;
  gap: 11px;
  margin-top: 25px;
}

.option-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 60px;
  gap: 13px;
  padding: 9px 13px 9px 10px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.82);
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.option-button:hover {
  border-color: var(--ink);
  background: #fff;
  transform: translateX(3px);
}

.option-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.text-button:focus-visible,
.tool-card:focus-visible,
.icon-button:focus-visible {
  outline: 3px solid rgba(255, 141, 97, 0.36);
  outline-offset: 3px;
}

.option-button.is-selected {
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
  box-shadow: 4px 5px 0 rgba(255, 141, 97, 0.65);
  transform: translate(-2px, -2px);
}

.option-letter {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 11px;
  color: var(--ink);
  background: var(--lime);
  font-size: 12px;
  font-weight: 900;
}

.option-button:nth-child(2) .option-letter {
  background: var(--aqua);
}

.option-button:nth-child(3) .option-letter {
  background: var(--purple);
}

.option-button.is-selected .option-letter {
  border-color: var(--paper);
  color: var(--ink);
}

.option-text {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.option-arrow {
  color: #aaa59d;
  font-size: 18px;
  transition: color 180ms ease, transform 180ms ease;
}

.option-button:hover .option-arrow {
  color: var(--orange);
  transform: translateX(3px);
}

.option-button.is-selected .option-arrow {
  color: var(--orange);
}

.quiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: #aaa59d;
  font-size: 10px;
}

.quiz-footer span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Result screen */
.result-screen {
  padding: 12px 28px 28px;
}

.result-intro {
  position: relative;
  padding: 22px 0 24px;
}

.result-intro h2 {
  margin: 15px 0 0;
  color: var(--ink);
  font-size: clamp(35px, 10vw, 48px);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 1.02;
}

.confetti {
  position: absolute;
  color: var(--orange);
  font-size: 24px;
  font-weight: 900;
}

.confetti-one {
  top: 39px;
  right: 55px;
  transform: rotate(17deg);
}

.confetti-two {
  top: 83px;
  right: 20px;
  color: var(--purple);
  font-size: 30px;
  transform: rotate(-15deg);
}

.confetti-three {
  top: 27px;
  right: 18px;
  color: var(--aqua);
  font-size: 14px;
}

.result-card {
  position: relative;
  min-height: 328px;
  overflow: hidden;
  padding: 21px 22px 17px;
  border: 1.5px solid var(--ink);
  border-radius: 25px;
  color: #fff;
  background: var(--ink);
  box-shadow: 8px 9px 0 rgba(255, 141, 97, 0.85);
  animation: card-in 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.result-card-glow {
  position: absolute;
  top: -100px;
  right: -62px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(217, 255, 101, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 25px rgba(217, 255, 101, 0.03), 0 0 0 57px rgba(217, 255, 101, 0.025);
}

.result-card-top,
.result-card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-level {
  color: rgba(255, 255, 255, 0.56);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.result-chip {
  padding: 6px 9px;
  border: 1px solid rgba(217, 255, 101, 0.42);
  border-radius: 20px;
  color: var(--lime);
  font-size: 9px;
  font-weight: 800;
}

.result-medal {
  position: relative;
  z-index: 1;
  display: grid;
  width: 92px;
  height: 92px;
  margin: 25px auto 11px;
  place-items: center;
  border: 1px solid rgba(255, 141, 97, 0.45);
  border-radius: 50%;
  background: rgba(255, 141, 97, 0.12);
  animation: medal-in 650ms 100ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.medal-outer {
  position: absolute;
  width: 69px;
  height: 69px;
  border: 1px solid var(--orange);
  border-radius: 50%;
}

.medal-inner {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--orange);
  border-radius: 50%;
  color: var(--orange);
  background: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.result-type,
.result-card h2,
.result-description {
  position: relative;
  z-index: 1;
  text-align: center;
}

.result-type {
  margin: 0;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.result-card h2 {
  margin: 6px 0 0;
  color: #fff;
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.result-description {
  max-width: 330px;
  margin: 11px auto 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1.75;
}

.result-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 13px;
}

.result-tags span {
  padding: 5px 8px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.09);
  font-size: 9px;
}

.result-card-footer {
  position: absolute;
  right: 22px;
  bottom: 16px;
  left: 22px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.4);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.result-card-footer b {
  color: var(--lime);
}

.result-card[data-level="gold"] .result-medal {
  border-color: rgba(217, 255, 101, 0.5);
  background: rgba(217, 255, 101, 0.1);
}

.result-card[data-level="gold"] .medal-outer,
.result-card[data-level="gold"] .medal-inner,
.result-card[data-level="gold"] .result-type {
  color: var(--lime);
  border-color: var(--lime);
}

.result-card[data-level="king"] {
  background: #27375b;
  box-shadow: 8px 9px 0 var(--aqua);
}

.result-card[data-level="king"] .result-medal {
  border-color: rgba(183, 238, 228, 0.58);
  background: rgba(183, 238, 228, 0.13);
}

.result-card[data-level="king"] .medal-outer,
.result-card[data-level="king"] .medal-inner,
.result-card[data-level="king"] .result-type {
  color: var(--aqua);
  border-color: var(--aqua);
}

.insight-panel {
  margin-top: 24px;
  padding: 18px 17px 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.82);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.panel-kicker {
  margin: 0 0 5px;
  color: #aaa59d;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.panel-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.panel-spark {
  color: var(--orange);
  font-size: 24px;
  font-weight: 900;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 15px;
}

.insight-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.insight-icon {
  display: grid;
  width: 27px;
  height: 27px;
  margin-bottom: 9px;
  place-items: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.insight-icon-orange {
  color: var(--ink);
  background: var(--orange);
}

.insight-icon-blue {
  color: var(--ink);
  background: var(--aqua);
}

.insight-icon-purple {
  color: var(--ink);
  background: var(--purple);
}

.insight-item span {
  overflow: hidden;
  color: #9d9a93;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-item b {
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-card {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 13px;
  margin-top: 14px;
  padding: 16px 15px;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  background: var(--lime);
  box-shadow: 4px 5px 0 var(--ink);
  color: var(--ink);
  font: inherit;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.tool-card:hover {
  background: #e7ff8c;
  transform: translate(-2px, -2px);
  box-shadow: 6px 7px 0 var(--ink);
}

.tool-card-icon {
  position: relative;
  display: flex;
  width: 41px;
  height: 41px;
  flex: 0 0 41px;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 8px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
}

.tool-card-icon::before {
  position: absolute;
  top: 7px;
  left: 8px;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  content: "";
  transform: rotate(-28deg);
}

.tool-card-icon span {
  display: block;
  width: 5px;
  border-radius: 3px 3px 0 0;
  background: var(--orange);
}

.tool-card-icon span:nth-child(1) {
  height: 9px;
}

.tool-card-icon span:nth-child(2) {
  height: 15px;
  background: var(--aqua);
}

.tool-card-icon span:nth-child(3) {
  height: 22px;
  background: var(--purple);
}

.tool-card-copy {
  min-width: 0;
  flex: 1;
}

.tool-card-copy p {
  margin: 0 0 5px;
  color: rgba(23, 38, 59, 0.64);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.tool-card-copy p span {
  margin-right: 4px;
}

.tool-card-copy h3 {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-card-copy > span {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: rgba(23, 38, 59, 0.62);
  font-size: 10px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-card-arrow {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--lime);
  background: var(--ink);
  font-size: 17px;
}

.handoff-panel {
  margin-top: 14px;
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.9);
  animation: panel-in 280ms ease both;
}

.handoff-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.handoff-heading h3 {
  max-width: 290px;
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.25;
}

.handoff-close {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #9c9891;
  background: transparent;
  font-size: 19px;
  line-height: 1;
}

.handoff-close:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: #fff;
}

.handoff-description {
  margin: 9px 0 15px;
  color: #9b9891;
  font-size: 10px;
  line-height: 1.65;
}

.handoff-options {
  display: grid;
  gap: 8px;
}

.handoff-option {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.handoff-option:hover {
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--aqua);
  transform: translateX(2px);
}

.handoff-option.is-active {
  border-color: var(--ink);
  background: var(--lime);
  box-shadow: 3px 3px 0 var(--ink);
  transform: translateX(2px);
}

.handoff-option.is-active i {
  color: var(--ink);
}

.handoff-option-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 9px;
  color: var(--ink);
  background: var(--aqua);
  font-size: 14px;
  font-weight: 900;
}

.handoff-option:nth-child(2) .handoff-option-icon {
  background: var(--orange);
}

.handoff-option:nth-child(3) .handoff-option-icon {
  background: var(--purple);
}

.handoff-option span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.handoff-option b {
  font-size: 11px;
  font-weight: 900;
}

.handoff-option small {
  overflow: hidden;
  color: #a29e96;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.handoff-option i {
  color: #aaa59d;
  font-size: 16px;
  font-style: normal;
}

.handoff-result {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 11px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.handoff-result-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: var(--ink);
  background: var(--lime);
  font-size: 17px;
  font-weight: 900;
}

.handoff-result .panel-kicker {
  margin-top: 1px;
}

.handoff-result h4 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.handoff-result p:last-child {
  margin: 5px 0 0;
  color: #8f8b84;
  font-size: 10px;
  line-height: 1.6;
}

.handoff-result > a {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  margin-top: 2px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

.handoff-result > a span {
  color: var(--orange);
  font-size: 14px;
  text-decoration: none;
}

.result-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
}

.secondary-button,
.text-button {
  border: 0;
  font-size: 11px;
  font-weight: 800;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.75);
}

.secondary-button span {
  color: var(--orange);
  font-size: 17px;
}

.text-button {
  padding: 8px 0;
  color: #9c9891;
  background: transparent;
}

.secondary-button:hover {
  border-color: var(--ink);
  background: #fff;
}

.text-button:hover {
  color: var(--ink);
}

.result-disclaimer {
  max-width: 410px;
  margin: 21px auto 0;
  color: #aaa59d;
  font-size: 9px;
  line-height: 1.7;
  text-align: center;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  margin: 0 28px;
  border-top: 1px solid var(--line);
  color: #aaa59d;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.app-footer span:first-child {
  color: var(--ink);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.toast {
  position: fixed;
  z-index: 10;
  bottom: 25px;
  left: 50%;
  padding: 10px 15px;
  border: 1px solid var(--ink);
  border-radius: 30px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 4px 5px 0 var(--orange);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes float-plane {
  0%,
  100% {
    margin-top: 0;
  }
  50% {
    margin-top: -8px;
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(15px) rotate(1deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes medal-in {
  from {
    opacity: 0;
    transform: scale(0.55) rotate(-18deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 521px) {
  .app-shell {
    min-height: 920px;
  }

  .screen {
    min-height: 804px;
  }
}

@media (max-width: 420px) {
  .topbar {
    padding: 0 20px;
  }

  .start-screen,
  .quiz-screen,
  .result-screen {
    padding-right: 20px;
    padding-left: 20px;
  }

  .start-art {
    height: 294px;
    flex-basis: 294px;
  }

  .art-ring-large {
    width: 255px;
    height: 255px;
  }

  .art-ring-small {
    width: 176px;
    height: 176px;
  }

  .art-plane {
    right: 47px;
  }

  .art-chart {
    right: 1px;
  }

  .sticker-time {
    left: 17px;
  }

  .sticker-fast {
    right: 7px;
  }

  .question-stage {
    padding-top: 23px;
  }

  .question-art {
    margin-top: 14px;
    margin-bottom: 17px;
  }

  .result-card {
    padding-right: 17px;
    padding-left: 17px;
  }

  .result-card-footer {
    right: 17px;
    left: 17px;
  }

  .app-footer {
    margin-right: 20px;
    margin-left: 20px;
  }
}

@media (max-width: 350px) {
  .topbar-label {
    font-size: 9px;
  }

  .start-art {
    height: 275px;
    flex-basis: 275px;
  }

  .start-copy h1 {
    font-size: 45px;
  }

  .question-stage h2 {
    font-size: 24px;
  }

  .option-text {
    font-size: 12px;
  }

  .tool-card-copy > span {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
