:root {
  --bg: #040609;
  --panel: rgba(8, 14, 17, 0.84);
  --panel-strong: rgba(11, 18, 22, 0.96);
  --line: rgba(220, 255, 246, 0.18);
  --line-strong: rgba(215, 255, 86, 0.42);
  --text: #f7faf5;
  --muted: rgba(247, 250, 245, 0.68);
  --soft: rgba(247, 250, 245, 0.46);
  --mint: #1fe7b6;
  --cyan: #5be7ff;
  --acid: #d7ff56;
  --orange: #ff7a3d;
  --pink: #ff5fa2;
  --danger: #ff4f4f;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 4%, rgba(31, 231, 182, 0.16), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(255, 122, 61, 0.12), transparent 28%),
    radial-gradient(circle at 50% 110%, rgba(91, 231, 255, 0.13), transparent 32%),
    var(--bg);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

#terrainCanvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.4;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, transparent, rgba(91, 231, 255, 0.08), transparent);
  mix-blend-mode: screen;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(14px, 4vw, 42px);
  background: linear-gradient(180deg, rgba(4, 6, 9, 0.8), rgba(4, 6, 9, 0.1));
  pointer-events: none;
}

.brand,
.status-pill {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.brand span {
  white-space: nowrap;
}

.brand-home {
  display: none;
}

.status-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--acid);
  background: rgba(4, 8, 10, 0.58);
  font-family: "SF Mono", Consolas, ui-monospace, monospace;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

main {
  min-height: 100svh;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.boot-screen,
.direction-screen,
.quiz-screen,
.result-screen,
.apply-screen,
.thanks-screen {
  width: min(1180px, calc(100% - 32px));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(86px, 13svh, 132px) 0 clamp(34px, 7svh, 70px);
}

.boot-screen {
  position: relative;
  display: none;
  align-content: center;
}

.boot-screen.is-active {
  display: grid;
}

.code-rain {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.62;
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 82%, transparent);
}

.code-rain span {
  position: absolute;
  top: -12%;
  color: rgba(91, 231, 255, 0.34);
  font-family: "SF Mono", Consolas, ui-monospace, monospace;
  font-size: 12px;
  white-space: nowrap;
  animation: codefall linear infinite;
  text-shadow: 0 0 18px rgba(91, 231, 255, 0.34);
}

.code-rain span.rise {
  animation-name: codeRise;
}

.code-rain span.side {
  animation-name: codeSide;
}

.code-rain span.diag {
  animation-name: codeDiag;
}

.boot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: clamp(22px, 5vw, 58px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--acid);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 830px;
  margin-bottom: 20px;
  font-size: clamp(42px, 8.6vw, 108px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 6.2vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.12;
  letter-spacing: 0;
}

.boot-copy p,
.section-head p,
.quiz-aside p,
.recommend-panel p,
.thanks-panel p {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.78;
}

.boot-console,
.track-card,
.route-panel,
.quiz-aside,
.quiz-card,
.result-card,
.recommend-panel,
.apply-form,
.thanks-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.boot-console {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(9, 20, 22, 0.94), rgba(4, 8, 10, 0.8)),
    radial-gradient(circle at 12% 0%, rgba(31, 231, 182, 0.18), transparent 40%);
  animation: consolePulse 3.8s ease-in-out infinite;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(247, 250, 245, 0.1);
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 99px;
  background: var(--orange);
}

.terminal-bar span:nth-child(2) {
  background: var(--acid);
}

.terminal-bar span:nth-child(3) {
  background: var(--mint);
}

.terminal-lines {
  min-height: 220px;
  max-height: 270px;
  overflow: hidden;
  padding: 18px;
  font-family: "SF Mono", Consolas, ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.75;
}

.terminal-lines p {
  margin: 0 0 8px;
  color: rgba(247, 250, 245, 0.78);
}

.terminal-lines b {
  color: var(--acid);
}

.terminal-lines span {
  color: var(--mint);
}

.terminal-lines i {
  color: var(--orange);
  font-style: normal;
}

.boot-progress {
  padding: 0 18px 18px;
}

.boot-progress div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: var(--soft);
  font-family: "SF Mono", Consolas, ui-monospace, monospace;
  font-size: 12px;
}

.boot-progress {
  position: relative;
}

.boot-progress::after {
  content: "";
  display: block;
  height: 9px;
  border-radius: 99px;
  background: rgba(247, 250, 245, 0.1);
}

.boot-progress i {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  width: 0%;
  height: 9px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--orange), var(--acid), var(--mint), var(--cyan));
  transition: width 0.18s ease;
}

.boot-chips,
.tag-row,
.route-actions,
.quiz-actions,
.trait-grid,
.chip-grid,
.apply-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.boot-chips {
  padding: 0 18px 18px;
}

.boot-chips button,
.button,
.quiz-option,
.chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
}

.boot-chips button {
  min-height: 36px;
  padding: 0 10px;
  color: var(--muted);
  font-family: "SF Mono", Consolas, ui-monospace, monospace;
  font-size: 12px;
}

.boot-chips button.is-hit {
  color: #04100d;
  border-color: transparent;
  background: var(--acid);
}

.section-head {
  max-width: 880px;
  margin-bottom: 24px;
}

.section-head.compact {
  margin-bottom: 0;
}

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

.track-card {
  min-height: 312px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  outline: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  animation: cardFloat 6s ease-in-out infinite;
}

.track-card:nth-child(2) {
  animation-delay: -0.8s;
}

.track-card:nth-child(3) {
  animation-delay: -1.6s;
}

.track-card:nth-child(4) {
  animation-delay: -2.4s;
}

.track-card:nth-child(5) {
  animation-delay: -3.2s;
}

.track-card:nth-child(6) {
  animation-delay: -4s;
}

.track-card:hover,
.track-card:focus,
.track-card.is-selected {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: rgba(18, 28, 28, 0.9);
}

.track-code {
  color: var(--soft);
  font-family: "SF Mono", Consolas, ui-monospace, monospace;
  font-size: 12px;
  font-weight: 800;
}

.track-card h3 {
  margin-top: 18px;
}

.track-card p {
  color: var(--muted);
  line-height: 1.68;
}

.tag-row {
  margin-top: auto;
}

.tag-row span,
.trait-grid span,
.apply-context span {
  border: 1px solid rgba(247, 250, 245, 0.14);
  border-radius: 8px;
  padding: 7px 9px;
  color: rgba(247, 250, 245, 0.82);
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  font-weight: 820;
}

.previous-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: -10px 0 20px;
  border: 1px solid rgba(215, 255, 86, 0.32);
  border-radius: 14px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(215, 255, 86, 0.11), rgba(91, 231, 255, 0.06)),
    rgba(6, 12, 14, 0.78);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.previous-result > div {
  min-width: 0;
}

.previous-result[hidden] {
  display: none;
}

.previous-result span {
  display: block;
  margin-bottom: 5px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.previous-result strong {
  display: block;
  color: var(--acid);
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.previous-result p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.previous-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.route-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 20px;
  opacity: 0.38;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.route-panel.is-open {
  opacity: 1;
  transform: translateY(0);
}

.route-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.route-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 45%, rgba(31, 231, 182, 0.18), transparent 34%),
    rgba(0, 0, 0, 0.66);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.route-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.route-modal-card {
  position: relative;
  width: min(620px, 100%);
  border: 1px solid rgba(215, 255, 86, 0.36);
  border-radius: 14px;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(180deg, rgba(13, 23, 24, 0.96), rgba(5, 8, 10, 0.96)),
    radial-gradient(circle at 86% 18%, rgba(91, 231, 255, 0.12), transparent 34%);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.62);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.18s ease;
}

.route-modal.is-open .route-modal-card {
  transform: translateY(0) scale(1);
}

.poster-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 5, 7, 0.74);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  backdrop-filter: blur(18px);
}

.poster-modal[hidden] {
  display: none;
}

.poster-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.poster-modal-card {
  position: relative;
  width: min(520px, calc(100vw - 28px));
  max-height: calc(100svh - 38px);
  overflow: auto;
  border: 1px solid rgba(247, 250, 245, 0.16);
  border-radius: 18px;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 8%, rgba(215, 255, 86, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(10, 18, 20, 0.98), rgba(4, 7, 9, 0.98));
  box-shadow: var(--shadow);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.18s ease;
}

.poster-modal.is-open .poster-modal-card {
  transform: translateY(0) scale(1);
}

.poster-art {
  --poster-accent: var(--acid);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(247, 250, 245, 0.14);
  border-radius: 22px;
  padding: clamp(22px, 5vw, 34px);
  background:
    radial-gradient(circle at 18% 8%, rgba(215, 255, 86, 0.2), transparent 34%),
    radial-gradient(circle at 78% 12%, rgba(91, 231, 255, 0.14), transparent 28%),
    linear-gradient(145deg, rgba(7, 18, 14, 0.98), rgba(3, 8, 10, 0.98));
}

.poster-art::before {
  content: "";
  position: absolute;
  top: 64px;
  right: -42px;
  width: 280px;
  height: 170px;
  border-top: 4px dashed rgba(215, 255, 86, 0.32);
  border-radius: 50%;
  transform: rotate(14deg);
  opacity: 0.58;
}

.poster-topline {
  position: relative;
  color: rgba(247, 250, 245, 0.62);
  font-family: "SF Mono", Consolas, ui-monospace, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.34em;
}

.poster-hero-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 180px);
  gap: 14px;
  align-items: center;
}

.poster-avatar {
  width: min(180px, 32vw);
  aspect-ratio: 1;
  justify-self: end;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.36));
}

.poster-avatar .profile-avatar {
  width: 100%;
  height: 100%;
}

.poster-art strong {
  position: relative;
  display: block;
  margin-top: 28px;
  color: var(--poster-accent);
  font-size: clamp(42px, 9vw, 74px);
  line-height: 0.98;
  font-weight: 950;
}

.poster-subtitle {
  position: relative;
  margin: 16px 0 0;
  color: var(--text) !important;
  font-size: clamp(18px, 4vw, 28px) !important;
  font-weight: 920;
  line-height: 1.35 !important;
}

.poster-desc {
  position: relative;
  min-height: 168px;
  margin: 26px 0 0;
  color: rgba(247, 250, 245, 0.74) !important;
  font-size: clamp(15px, 3vw, 22px) !important;
  line-height: 1.65 !important;
  white-space: pre-line;
}

.poster-insights {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.poster-insights article {
  border: 1px solid rgba(215, 255, 86, 0.22);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.052);
}

.poster-insights b {
  display: block;
  margin-bottom: 5px;
  color: var(--poster-accent);
  font-size: 13px;
}

.poster-insights span {
  display: block;
  color: rgba(247, 250, 245, 0.7);
  font-size: 12px;
  line-height: 1.5;
}

.poster-tags {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.poster-tags span {
  border: 1px solid rgba(247, 250, 245, 0.12);
  border-radius: 999px;
  padding: 10px 14px;
  color: rgba(247, 250, 245, 0.86);
  background: rgba(255, 255, 255, 0.055);
  font-weight: 900;
}

.poster-bottom {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 122px;
  gap: 18px;
  align-items: center;
  margin-top: 36px;
  border: 1px solid rgba(215, 255, 86, 0.24);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.poster-bottom b {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 19px;
}

.poster-bottom span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.poster-bottom img {
  width: 122px;
  height: 122px;
  border-radius: 10px;
  background: #fff;
}

.poster-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.poster-modal-card.has-generated .poster-art {
  display: none;
}

.generated-poster-image {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: 1px solid rgba(215, 255, 86, 0.3);
  border-radius: 16px;
  background: #04100d;
  -webkit-touch-callout: default;
}

.generated-poster-image[hidden] {
  display: none;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.modal-callout {
  border: 1px solid rgba(215, 255, 86, 0.24);
  border-radius: 12px;
  margin: 18px 0;
  padding: 14px;
  background: rgba(215, 255, 86, 0.08);
}

.modal-callout span {
  display: block;
  margin-bottom: 5px;
  color: var(--acid);
  font-weight: 900;
}

.modal-callout p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 900;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.button:hover,
.quiz-option:hover {
  transform: translateY(-1px);
  border-color: rgba(247, 250, 245, 0.36);
}

.button.primary {
  color: #04100d;
  border-color: transparent;
  background: linear-gradient(100deg, var(--acid), var(--mint), var(--cyan));
  box-shadow: 0 18px 42px rgba(31, 231, 182, 0.2);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.07);
}

.button.text {
  min-height: 42px;
  border-color: transparent;
  color: var(--soft);
  background: transparent;
}

.button.wide {
  width: 100%;
}

.quiz-layout,
.result-layout,
.apply-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.result-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.quiz-aside,
.recommend-panel {
  padding: 22px;
}

.quiz-meter {
  margin-top: 24px;
  color: var(--soft);
  font-family: "SF Mono", Consolas, ui-monospace, monospace;
  font-size: 12px;
}

.quiz-meter i {
  display: block;
  height: 10px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(247, 250, 245, 0.1);
}

.quiz-meter b {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--acid), var(--mint));
  transition: width 0.2s ease;
}

.quiz-card {
  min-height: 560px;
  display: grid;
  align-content: center;
  padding: clamp(22px, 4vw, 42px);
}

.quiz-card h3 {
  max-width: 780px;
  margin: 18px 0 24px;
  font-size: clamp(26px, 4.4vw, 52px);
  line-height: 1.12;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quiz-option {
  min-height: 104px;
  padding: 16px;
  color: rgba(247, 250, 245, 0.86);
  text-align: left;
  line-height: 1.58;
}

.quiz-option span {
  display: block;
}

.quiz-actions {
  justify-content: space-between;
  margin-top: 22px;
}

.quiz-actions button:disabled {
  opacity: 0.36;
  cursor: not-allowed;
}

.result-card {
  min-height: 660px;
  padding: clamp(26px, 5vw, 54px);
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
}

.result-card h2 {
  margin-bottom: 10px;
  color: var(--acid);
  text-shadow: 0 0 34px rgba(215, 255, 86, 0.24);
}

.result-subtitle {
  margin-bottom: 0;
  color: rgba(247, 250, 245, 0.86) !important;
  font-size: clamp(18px, 2.4vw, 28px) !important;
  font-weight: 900;
}

.result-notice {
  margin: 10px 0 0;
  border-left: 3px solid var(--acid);
  padding-left: 12px;
  color: rgba(247, 250, 245, 0.68);
  font-size: 14px;
  line-height: 1.65;
}

.result-card p {
  max-width: 980px;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.8;
}

.avatar-stage {
  width: 220px;
  height: 220px;
  justify-self: end;
  filter: drop-shadow(0 26px 46px rgba(0, 0, 0, 0.36));
}

.profile-avatar {
  display: block;
  width: 100%;
  height: 100%;
}

.trait-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.profile-grid article {
  min-height: 164px;
  border: 1px solid rgba(247, 250, 245, 0.12);
  border-radius: 12px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(4, 8, 10, 0.44);
}

.profile-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--acid);
  font-family: "SF Mono", Consolas, ui-monospace, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-grid p {
  margin: 0;
  color: rgba(247, 250, 245, 0.72);
  font-size: 14px;
  line-height: 1.72;
}

.recommend-panel {
  position: sticky;
  top: 92px;
}

.recommend-panel p {
  font-size: 16px;
}

.share-panel {
  margin-top: 22px;
  border-top: 1px solid rgba(247, 250, 245, 0.12);
  padding-top: 18px;
}

.share-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(215, 255, 86, 0.28);
  border-radius: 12px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(215, 255, 86, 0.12), rgba(31, 231, 182, 0.08)),
    rgba(255, 255, 255, 0.045);
}

.share-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.share-card strong {
  display: block;
  color: var(--acid);
  font-size: 25px;
  line-height: 1.1;
}

.share-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.share-card img {
  width: 118px;
  height: 118px;
  border-radius: 8px;
  background: #fff;
}

.share-link-label {
  margin-top: 14px;
}

.share-actions,
.share-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.share-note {
  margin: 12px 0 0;
  color: var(--soft) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.apply-form {
  padding: clamp(18px, 3vw, 28px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label,
legend {
  display: block;
  color: rgba(247, 250, 245, 0.86);
  font-size: 13px;
  font-weight: 860;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  border: 1px solid rgba(247, 250, 245, 0.16);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--text);
  background: rgba(4, 8, 10, 0.72);
  outline: none;
}

textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(215, 255, 86, 0.58);
  box-shadow: 0 0 0 3px rgba(215, 255, 86, 0.1);
}

.form-group {
  min-width: 0;
}

.full-row {
  grid-column: 1 / -1;
}

.field-label {
  display: block;
  color: rgba(247, 250, 245, 0.86);
  font-size: 13px;
  font-weight: 860;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.choice-grid.compact {
  gap: 7px;
}

.choice-btn {
  min-height: 42px;
  border: 1px solid rgba(247, 250, 245, 0.16);
  border-radius: 10px;
  padding: 9px 12px;
  color: rgba(247, 250, 245, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(5, 10, 12, 0.92);
  font-weight: 850;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.choice-btn:hover,
.choice-btn.is-selected {
  border-color: rgba(215, 255, 86, 0.55);
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(215, 255, 86, 0.16), rgba(91, 231, 255, 0.09)),
    rgba(8, 16, 18, 0.96);
}

.choice-btn.is-selected {
  box-shadow: 0 0 0 3px rgba(215, 255, 86, 0.08);
}

.skill-field {
  border: 1px solid rgba(247, 250, 245, 0.12);
  border-radius: 12px;
  margin: 16px 0;
  padding: 14px;
}

.chip-grid {
  margin-top: 10px;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  color: rgba(247, 250, 245, 0.82);
  font-size: 13px;
  font-weight: 790;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip:has(input:checked) {
  color: #04100d;
  border-color: transparent;
  background: var(--acid);
}

.apply-context {
  margin-top: 18px;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0;
  color: var(--muted);
  line-height: 1.55;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--acid);
}

.form-error {
  min-height: 24px;
  margin: 0 0 12px;
  color: var(--danger);
  font-weight: 820;
}

.thanks-screen {
  display: none;
  align-content: center;
}

.thanks-screen.is-active {
  display: grid;
}

.thanks-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 52px);
}

.staff-body {
  min-height: 100svh;
}

.staff-console {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) 0;
}

.staff-hero,
.staff-toolbar,
.application-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.staff-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: clamp(24px, 5vw, 48px);
}

.staff-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(44px, 8vw, 96px);
}

.staff-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
}

.staff-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-top: 18px;
  padding: 18px;
}

.staff-count {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(215, 255, 86, 0.3);
  border-radius: 10px;
  padding: 0 14px;
  color: var(--acid);
  font-family: "SF Mono", Consolas, ui-monospace, monospace;
  font-weight: 900;
}

.application-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.application-card {
  padding: clamp(18px, 3vw, 26px);
}

.application-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.application-head span {
  color: var(--soft);
  font-family: "SF Mono", Consolas, ui-monospace, monospace;
  font-size: 12px;
  font-weight: 800;
}

.application-head h2 {
  margin: 8px 0;
  color: var(--acid);
  font-size: clamp(28px, 4vw, 48px);
}

.application-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.application-contact {
  border: 1px solid rgba(247, 250, 245, 0.14);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 900;
}

.application-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.application-meta span {
  border: 1px solid rgba(247, 250, 245, 0.14);
  border-radius: 8px;
  padding: 7px 9px;
  color: rgba(247, 250, 245, 0.82);
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  font-weight: 820;
}

.application-block {
  margin-top: 16px;
  border-left: 3px solid rgba(215, 255, 86, 0.54);
  padding-left: 12px;
}

.application-block strong {
  display: block;
  margin-bottom: 6px;
  color: var(--acid);
}

.application-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-wrap;
}

.application-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.empty-state {
  border: 1px dashed rgba(247, 250, 245, 0.2);
  border-radius: 14px;
  padding: 28px;
  color: var(--muted);
  background: rgba(6, 12, 14, 0.58);
  text-align: center;
  font-weight: 850;
}

@keyframes codefall {
  from {
    transform: translateY(-12vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  to {
    transform: translateY(112vh) translateX(-80px);
    opacity: 0;
  }
}

@keyframes codeRise {
  from {
    transform: translateY(112vh) translateX(0);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  to {
    transform: translateY(-112vh) translateX(70px);
    opacity: 0;
  }
}

@keyframes codeSide {
  from {
    transform: translateX(-120vw);
    opacity: 0;
  }
  16% {
    opacity: 1;
  }
  to {
    transform: translateX(120vw);
    opacity: 0;
  }
}

@keyframes codeDiag {
  from {
    transform: translate(-80vw, 80vh) rotate(-7deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  to {
    transform: translate(80vw, -80vh) rotate(-7deg);
    opacity: 0;
  }
}

@keyframes consolePulse {
  0%,
  100% {
    box-shadow: var(--shadow);
  }
  50% {
    box-shadow: 0 30px 100px rgba(31, 231, 182, 0.12), var(--shadow);
  }
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 980px) {
  .boot-grid,
  .quiz-layout,
  .result-layout,
  .apply-layout {
    grid-template-columns: 1fr;
  }

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

  .result-layout {
    grid-template-columns: 1fr;
  }

  .recommend-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 10px 12px;
  }

  .brand {
    border: 1px solid rgba(247, 250, 245, 0.14);
    border-radius: 10px;
    padding: 6px 9px 6px 7px;
    background: rgba(4, 8, 10, 0.58);
    backdrop-filter: blur(14px);
  }

  .brand img {
    width: 28px;
    height: 28px;
  }

  .brand-name {
    display: none;
  }

  .brand-home {
    display: inline;
    color: var(--text);
    font-size: 14px;
    font-weight: 950;
  }

  .boot-screen,
  .direction-screen,
  .quiz-screen,
  .result-screen,
  .apply-screen,
  .thanks-screen {
    width: min(100% - 24px, 1180px);
    padding-top: 96px;
  }

  .boot-grid {
    gap: 18px;
  }

  .terminal-lines {
    min-height: 190px;
    font-size: 12px;
  }

  .track-grid,
  .quiz-options,
  .form-grid,
  .profile-grid,
  .result-hero {
    grid-template-columns: 1fr;
  }

  .track-card {
    min-height: 252px;
  }

  .previous-result {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 0 0 18px;
    padding: 16px;
  }

  .previous-result span {
    font-size: 11px;
    line-height: 1.35;
  }

  .previous-result strong {
    font-size: clamp(26px, 9vw, 38px);
    line-height: 1.12;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .previous-result p {
    font-size: 15px;
  }

  .previous-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .previous-actions .button {
    min-height: 48px;
    padding: 0 12px;
    white-space: normal;
  }

  .avatar-stage {
    width: min(220px, 70vw);
    height: min(220px, 70vw);
    justify-self: start;
  }

  .route-panel {
    grid-template-columns: 1fr;
  }

  .share-card {
    grid-template-columns: 1fr;
  }

  .share-card img {
    width: min(180px, 55vw);
    height: min(180px, 55vw);
  }

  .poster-modal {
    align-items: start;
    padding: 10px;
  }

  .poster-modal-card {
    width: 100%;
    max-height: calc(100svh - 20px);
    border-radius: 14px;
    padding: 12px;
  }

  .poster-art {
    border-radius: 18px;
    padding: 20px;
  }

  .poster-art strong {
    margin-top: 22px;
    font-size: clamp(38px, 12vw, 58px);
  }

  .poster-hero-row {
    grid-template-columns: minmax(0, 1fr) minmax(106px, 132px);
  }

  .poster-avatar {
    width: min(132px, 32vw);
  }

  .poster-subtitle {
    font-size: clamp(17px, 5vw, 24px) !important;
  }

  .poster-desc {
    min-height: auto;
    margin-top: 18px;
    font-size: 15px !important;
    line-height: 1.58 !important;
  }

  .poster-insights {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .poster-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
  }

  .poster-tags span {
    padding: 9px 11px;
    font-size: 13px;
  }

  .poster-bottom {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 12px;
    margin-top: 24px;
    padding: 12px;
  }

  .poster-bottom img {
    width: 112px;
    height: 112px;
  }

  .generated-poster-image {
    max-height: none;
    object-fit: contain;
    border-radius: 12px;
  }

  .poster-actions {
    grid-template-columns: 1fr;
  }

  .choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-btn {
    width: 100%;
    min-height: 46px;
    padding: 9px 10px;
  }

  .role-choices {
    grid-template-columns: 1fr;
  }

  .route-actions,
  .quiz-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .button.text {
    width: 100%;
  }

  .quiz-card {
    min-height: auto;
    padding: 18px;
  }

  .quiz-option {
    min-height: 78px;
  }
}

@media (max-width: 380px) {
  .previous-actions {
    grid-template-columns: 1fr;
  }

  .previous-result strong {
    font-size: 28px;
  }
}
