@font-face {
  font-family: NotoKR;
  src: url("../fonts/NotoSansKR-Regular.ttf") format("truetype");
  font-display: swap;
}
:root {
  --ink: #f5fbff;
  --muted: #91a9b8;
  --bg: #06131c;
  --panel: #0d202c;
  --line: rgba(141, 202, 224, 0.16);
  --cyan: #45e0d0;
  --blue: #559dff;
  --yellow: #ffd766;
  --danger: #ff8d79;
}
* {
  box-sizing: border-box;
}
html {
  background: #031018;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: NotoKR, "Noto Sans KR", sans-serif;
  background: #031018;
}
button {
  font: inherit;
}
.app-shell {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  margin: auto;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 92% 6%,
      rgba(23, 126, 145, 0.18),
      transparent 34%
    ),
    linear-gradient(180deg, #071722 0%, #06131c 100%);
  box-shadow: 0 0 70px #000;
}
.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.17;
  pointer-events: none;
}
.ambient-one {
  width: 250px;
  height: 250px;
  right: -160px;
  top: 33%;
  background: var(--cyan);
}
.ambient-two {
  width: 190px;
  height: 190px;
  left: -140px;
  bottom: 2%;
  background: var(--blue);
}
.topbar {
  position: relative;
  z-index: 10;
  height: 72px;
  padding: env(safe-area-inset-top) 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 19, 28, 0.78);
  backdrop-filter: blur(12px);
}
.topbar[hidden] {
  display: none;
}
.icon-button {
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
}
.icon-button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.brand-mini {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  letter-spacing: 0.17em;
  color: #b8d1db;
}
.brand-orbit {
  width: 19px;
  height: 19px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  box-shadow: inset 0 0 8px rgba(69, 224, 208, 0.4);
}
.screen {
  position: relative;
  z-index: 1;
  display: none;
  min-height: 100dvh;
  padding: 28px 22px calc(28px + env(safe-area-inset-bottom));
}
.topbar:not([hidden]) ~ main .screen {
  min-height: calc(100dvh - 72px);
}
.screen.is-active {
  display: flex;
  flex-direction: column;
  animation: screenIn 0.35s ease both;
}
@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
}
.intro-screen {
  justify-content: flex-start;
  padding-top: max(42px, env(safe-area-inset-top));
}
.eyebrow,
.question-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.eyebrow span {
  width: 22px;
  height: 1px;
  background: var(--cyan);
}
h1,
h2,
p {
  margin: 0;
}
.intro-copy h1 {
  margin-top: 14px;
  margin-inline: auto;
  max-width: 330px;
  font-size: 37px;
  line-height: 1.22;
  letter-spacing: -0.05em;
}
.intro-copy {
  position: relative;
  z-index: 2;
}
.intro-copy:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -60px -22px -90px;
  background: linear-gradient(
    to bottom,
    rgba(7, 23, 34, 0.76) 0%,
    rgba(7, 23, 34, 0.58) 48%,
    rgba(7, 23, 34, 0.18) 78%,
    rgba(7, 23, 34, 0) 100%
  );
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 62%,
    transparent 100%
  );
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
  pointer-events: none;
}
.intro-copy h1 em,
.result-hero em {
  font-style: normal;
  color: var(--cyan);
}
.title-accent {
  display: block;
  width: 100%;
  text-align: right;
}
.intro-copy p {
  margin-top: 16px;
  margin-inline: auto;
  max-width: 330px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.hero-visual {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
.hero-visual:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(
    to bottom,
    rgba(7, 23, 34, 0),
    rgba(7, 23, 34, 0.68)
  );
  pointer-events: none;
}
.hero-scene {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: max(100%, calc(min(100vw, 480px) * 1844 / 853));
  aspect-ratio: 853 / 1844;
  transform: translate(-50%, -50%);
}
.hero-scene img {
  display: block;
  width: 100%;
  height: 100%;
  filter: saturate(0.92) contrast(1.04);
  opacity: 0.96;
}
.signal {
  position: absolute;
  border: 1px solid rgba(69, 224, 208, 0.4);
  border-radius: 50%;
  animation: pulse 2.6s ease infinite;
}
.signal-one {
  width: 68px;
  height: 68px;
  left: 42%;
  top: 39%;
}
.signal-two {
  width: 35px;
  height: 35px;
  right: 13%;
  top: 47%;
  animation-delay: 1s;
}
@keyframes pulse {
  50% {
    transform: scale(1.3);
    opacity: 0.2;
  }
}
.intro-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  position: relative;
  z-index: 2;
  margin: auto 0 22px;
  padding: 13px 0;
  border-block: 1px solid var(--line);
}
.intro-stats div {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.intro-stats strong {
  font-size: 18px;
  color: #dff;
}
.intro-stats span {
  font-size: 10px;
  color: var(--muted);
}
.intro-stats i {
  width: 1px;
  height: 18px;
  background: var(--line);
}
.primary-button,
.secondary-button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
}
.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #032320;
  background: linear-gradient(135deg, #56eddb, #41c9bd);
}
.primary-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.primary-button:disabled {
  cursor: not-allowed;
  color: #6e8289;
  background: #1c3039;
}
.glow {
  position: relative;
  z-index: 2;
  box-shadow: 0 12px 34px rgba(69, 224, 208, 0.22);
}
.privacy-note {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 12px;
  color: #607783;
  font-size: 10px;
}
.question-screen {
  padding-top: 25px;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  color: #6f8996;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.progress-meta span:first-child {
  color: var(--cyan);
}
.progress-track {
  height: 3px;
  margin-top: 10px;
  background: #18313c;
}
.progress-track span {
  display: block;
  height: 100%;
  width: 11%;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width 0.3s;
}
.question-copy {
  margin: 37px 0 26px;
}
.question-copy h2 {
  margin-top: 12px;
  font-size: 27px;
  line-height: 1.35;
  letter-spacing: -0.04em;
}
.question-copy p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}
.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.option {
  position: relative;
  min-height: 75px;
  padding: 15px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #c8d8df;
  background: linear-gradient(
    145deg,
    rgba(18, 44, 57, 0.86),
    rgba(11, 29, 39, 0.92)
  );
  text-align: left;
  font-size: 13px;
  line-height: 1.42;
  cursor: pointer;
  transition: 0.2s;
}
.option:before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin-bottom: 11px;
  border: 1px solid #68828d;
  border-radius: 50%;
}
.option.selected {
  border-color: var(--cyan);
  color: #efffff;
  background: linear-gradient(
    145deg,
    rgba(35, 104, 104, 0.58),
    rgba(11, 44, 53, 0.92)
  );
  box-shadow: inset 0 0 0 1px rgba(69, 224, 208, 0.1);
}
.option.selected:before {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 9px var(--cyan);
}
.options.single-column {
  grid-template-columns: 1fr;
}
.options.single-column .option {
  min-height: 63px;
}
.bottom-action {
  margin-top: auto;
  padding-top: 25px;
}
.skip-button {
  width: 100%;
  padding: 14px;
  border: 0;
  color: #8199a4;
  background: none;
  font-size: 12px;
}
.loading-screen {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.scanner {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 40px;
  border: 1px solid rgba(69, 224, 208, 0.15);
  border-radius: 50%;
  animation: rotate 9s linear infinite;
}
.scanner:before,
.scanner:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  inset: 17px;
  border: 1px dashed rgba(85, 157, 255, 0.25);
}
.scanner:after {
  inset: 45px;
  border-style: solid;
}
.scanner-core {
  position: absolute;
  inset: 57px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 30px rgba(69, 224, 208, 0.7);
}
.scanner-core span {
  position: absolute;
  inset: -7px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
}
.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  top: 17px;
  left: 26px;
  box-shadow: 0 0 10px var(--yellow);
}
@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}
.loading-screen h2 {
  margin: 15px 0 12px;
  font-size: 29px;
  line-height: 1.42;
}
.loading-screen > p {
  color: var(--muted);
  font-size: 13px;
}
.loading-steps {
  display: flex;
  align-items: center;
  margin-top: 52px;
  color: #536b76;
  font-size: 9px;
}
.loading-steps i {
  width: 28px;
  height: 1px;
  margin: 0 8px;
  background: #26404b;
}
.loading-steps .done {
  color: var(--cyan);
}
.loading-steps .active {
  color: #c8e5ed;
}
.result-screen {
  padding-top: 28px;
}
.result-hero h2 {
  margin-top: 13px;
  font-size: 29px;
  line-height: 1.38;
  letter-spacing: -0.045em;
}
.result-hero > p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
.result-hero > .result-conflict {
  padding: 11px 12px;
  border: 1px solid rgba(255, 141, 121, 0.3);
  border-radius: 10px;
  color: #ffc0b5;
  background: rgba(255, 141, 121, 0.08);
  font-size: 10px;
  line-height: 1.6;
}
.route-overview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 27px 0 23px;
  color: #56717c;
  font-size: 8px;
  letter-spacing: 0.12em;
}
.route-overview > div {
  display: flex;
  flex: 1;
  align-items: center;
}
.route-overview i {
  display: block;
  flex: 1;
  height: 1px;
  background: #25434e;
}
.route-overview b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 8px;
}
.route-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.route-card {
  position: relative;
  padding: 18px 16px 17px 58px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(
    145deg,
    rgba(17, 43, 55, 0.95),
    rgba(8, 25, 35, 0.95)
  );
  overflow: hidden;
}
.route-card:before {
  content: "";
  position: absolute;
  left: 28px;
  top: 42px;
  bottom: -21px;
  width: 1px;
  background: linear-gradient(var(--cyan), transparent);
}
.route-card:last-child:before {
  display: none;
}
.route-number {
  position: absolute;
  left: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: #042a27;
  background: var(--cyan);
  font-size: 10px;
  font-weight: 700;
}
.route-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.route-meta {
  display: flex;
  gap: 10px;
  color: #80a0ac;
  font-size: 10px;
}
.route-reason {
  margin: 13px 0 0;
  color: #b5c9d1;
  font-size: 11px;
  line-height: 1.7;
}
.exhibit-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 14px;
  padding: 11px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--cyan);
  background: none;
  font-size: 10px;
}
.exhibit-toggle svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  transition: 0.2s;
}
.route-card.open .exhibit-toggle svg {
  transform: rotate(180deg);
}
.exhibits {
  display: none;
  margin-top: 10px;
}
.route-card.open .exhibits {
  display: block;
}
.exhibit {
  padding: 9px 10px;
  border-left: 2px solid rgba(69, 224, 208, 0.35);
  color: #91aab4;
  background: rgba(4, 17, 24, 0.35);
  font-size: 10px;
  line-height: 1.55;
}
.exhibit + .exhibit {
  margin-top: 6px;
}
.exhibit strong {
  display: block;
  margin-bottom: 2px;
  color: #d5e9ef;
  font-size: 11px;
}
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 24px;
}
.secondary-button {
  border: 1px solid var(--line);
  color: #a8c0ca;
  background: rgba(255, 255, 255, 0.025);
}
.result-footnote {
  margin-top: 14px;
  text-align: center;
  color: #55717c;
  font-size: 9px;
}
@media (max-width: 360px) {
  .screen {
    padding-inline: 17px;
  }
  .intro-copy h1 {
    font-size: 32px;
  }
  .question-copy {
    margin-top: 28px;
  }
  .question-copy h2 {
    font-size: 24px;
  }
  .option {
    font-size: 12px;
  }
}
@media (min-width: 700px) {
  body {
    padding: 28px;
  }
  .app-shell {
    min-height: calc(100dvh - 56px);
    border-radius: 28px;
  }
  .screen {
    min-height: calc(100dvh - 56px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
