:root {
  color-scheme: dark;
  --ink: #f6f5ff;
  --muted: #a9abc2;
  --dim: #73768f;
  --night: #090b1b;
  --night-soft: #11142b;
  --panel: rgba(20, 23, 49, 0.86);
  --panel-solid: #151831;
  --line: rgba(255, 255, 255, 0.12);
  --violet: #9a7cff;
  --violet-strong: #7657ef;
  --violet-soft: rgba(154, 124, 255, 0.16);
  --amber: #ffc46b;
  --green: #77e0bd;
  --red: #ff8b9d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, rgba(87, 62, 176, 0.24), transparent 34rem),
    radial-gradient(circle at 85% 70%, rgba(63, 106, 171, 0.15), transparent 40rem),
    var(--night);
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.13;
}

.ambient-one {
  top: -8rem;
  right: -6rem;
  background: var(--violet);
}

.ambient-two {
  bottom: -10rem;
  left: -8rem;
  background: #2d9dcc;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  min-height: 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.locale-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.03);
}

.locale-switch button {
  min-width: 34px;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  cursor: pointer;
}

.locale-switch button.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(104,91,255,.92), rgba(32,177,224,.72));
  box-shadow: 0 4px 14px rgba(72,93,255,.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  width: max-content;
}

.official-brand-wordmark {
  display: block;
  width: clamp(100px, 9.5vw, 128px);
  height: auto;
  filter: drop-shadow(0 0 16px rgba(124, 92, 255, 0.2));
}

.mission-status {
  text-align: center;
  display: grid;
  gap: 5px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.eyebrow {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.22em;
}

.icon-button {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
}

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

.progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-track {
  height: 3px;
  margin-top: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

#progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--violet-strong), var(--amber));
  transition: width 500ms ease;
}

#experience {
  flex: 1;
  display: flex;
}

.screen {
  display: none;
  width: 100%;
  padding: 52px 0 68px;
  animation: screen-in 420ms ease both;
}

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

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

.welcome-grid,
.completion-grid {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: 72px;
}

.kicker {
  margin: 0 0 18px;
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 600;
  max-width: 800px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
}

h3 {
  font-size: 24px;
  line-height: 1.2;
}

.lead {
  max-width: 660px;
  color: #d1d1df;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.supporting {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.mission-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 38px;
}

.mission-facts span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 4px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border 180ms ease;
}

.primary-button {
  border: 1px solid var(--violet);
  color: #fff;
  background: linear-gradient(135deg, var(--violet-strong), #6041cb);
  box-shadow: 0 12px 36px rgba(89, 62, 190, 0.26);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.passport-hero,
.unlocked-compass {
  position: relative;
  display: grid;
  place-items: center;
  width: min(430px, 100%);
  aspect-ratio: 1;
  margin: auto;
}

.passport-hero {
  width: min(460px, 100%);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(154, 124, 255, 0.25);
  border-radius: 50%;
}

.orbit-one {
  inset: 4%;
  animation: rotate 24s linear infinite;
}

.orbit-one::before,
.orbit-two::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 18px var(--amber);
}

.orbit-two {
  inset: 16%;
  border-style: dashed;
  animation: rotate 18s linear infinite reverse;
}

.passport-book {
  position: absolute;
  z-index: 1;
  left: 2%;
  bottom: 6%;
  width: 42%;
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.48));
  transform: rotate(-8deg);
}

.stamp-card {
  position: relative;
  z-index: 2;
  width: 58%;
  overflow: hidden;
  border: 1px solid rgba(89, 204, 255, 0.45);
  border-radius: 8px;
  background: #020917;
  box-shadow:
    0 32px 70px rgba(0, 0, 0, 0.5),
    0 0 42px rgba(58, 161, 255, 0.16);
  transform: rotate(4deg) translateX(16%);
}

.stamp-card img {
  display: block;
  width: 100%;
}

.lock-strip {
  display: block;
  padding: 11px 10px;
  color: var(--muted);
  background: rgba(5, 9, 24, 0.96);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
}

.file-code {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 3%;
  color: var(--dim);
  font-size: 8px;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.compass-core {
  position: relative;
  width: 58%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(154, 124, 255, 0.22), rgba(13, 15, 34, 0.92) 65%);
  box-shadow: var(--shadow), inset 0 0 50px rgba(154, 124, 255, 0.15);
}

.compass-arrow {
  color: var(--amber);
  font-size: 72px;
  line-height: 0.7;
  text-shadow: 0 0 22px rgba(255, 196, 107, 0.4);
}

.compass-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.lock-state {
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.content-panel {
  width: min(1050px, 100%);
  margin: 0 auto;
}

.narrow-panel {
  width: min(780px, 100%);
}

.section-intro {
  margin-bottom: 34px;
}

.scene-screen {
  padding-top: 36px;
}

.scene-frame {
  position: relative;
  min-height: 440px;
  height: clamp(440px, calc(100vh - 230px), 590px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

.scene-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 24, 0.84) 0%, rgba(7, 9, 24, 0.28) 46%, rgba(7, 9, 24, 0.2)),
    linear-gradient(0deg, rgba(7, 9, 24, 0.86) 0%, transparent 54%);
}

.scene-heading {
  position: absolute;
  top: 34px;
  left: 38px;
}

.scene-heading h2 {
  font-size: 30px;
}

.scene-stakes {
  max-width: 390px;
  color: #c8cada;
  font-size: 13px;
}

.scene-roles {
  position: absolute;
  top: 30px;
  right: 28px;
  width: 280px;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 9, 24, 0.65);
  backdrop-filter: blur(8px);
}

.scene-roles span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.scene-roles strong {
  color: var(--amber);
  font-weight: 700;
}

.dialogue-stage {
  position: absolute;
  left: 38px;
  bottom: 90px;
  width: min(620px, calc(100% - 76px));
  display: grid;
  gap: 10px;
}

.dialogue-line {
  display: none;
  margin: 0;
  padding: 13px 16px;
  border-left: 3px solid var(--violet);
  background: rgba(8, 10, 25, 0.8);
  backdrop-filter: blur(8px);
  color: #f2f1fb;
  font-size: 18px;
  line-height: 1.45;
  animation: line-in 350ms ease both;
}

.dialogue-line span {
  margin-right: 8px;
  color: var(--amber);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.dialogue-line.is-visible {
  display: block;
}

.agent-line {
  border-color: var(--amber);
}

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

.scene-play {
  position: absolute;
  right: 28px;
  bottom: 28px;
}

.screen-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.choice-list,
.confidence,
.quiz-question {
  padding: 0;
  border: 0;
}

.choice-list {
  display: grid;
  gap: 12px;
  margin: 32px 0;
}

.choice {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  transition: border 180ms ease, background 180ms ease, transform 180ms ease;
}

.choice:hover {
  transform: translateX(3px);
  border-color: rgba(154, 124, 255, 0.48);
}

.choice:has(input:checked) {
  border-color: var(--violet);
  background: var(--violet-soft);
}

.choice input {
  position: absolute;
  opacity: 0;
}

.choice-letter {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 12px;
}

.choice:has(input:checked) .choice-letter {
  border-color: var(--amber);
  color: var(--amber);
}

.confidence {
  margin: 0 0 26px;
}

.confidence legend {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
}

.confidence label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 24px 10px 0;
  color: var(--muted);
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--violet);
}

.form-error {
  min-height: 20px;
  color: var(--red);
  font-size: 13px;
}

.feedback-box {
  margin-top: 34px;
  padding: 30px;
  border: 1px solid rgba(119, 224, 189, 0.34);
  background: rgba(119, 224, 189, 0.08);
}

.feedback-label {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.feedback-box p:not(.feedback-label) {
  color: #d6dedc;
  line-height: 1.55;
}

.country-note {
  margin: 22px 0;
  padding: 14px 16px;
  border-left: 2px solid var(--amber);
  background: rgba(255, 196, 107, 0.07);
}

.country-note strong {
  color: var(--amber);
}

.voice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 34px;
  align-items: stretch;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 45%, rgba(154, 124, 255, 0.2), transparent 45%),
    var(--panel-solid);
}

.video-frame video {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-frame.has-video video {
  display: block;
}

.video-frame.has-video .media-pending {
  display: none;
}

.media-pending {
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 34px;
  text-align: center;
}

.record-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(255, 139, 157, 0.6);
}

.pending-label,
.production-note span {
  color: var(--amber);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.media-pending blockquote {
  margin: 10px 0 0;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.25;
}

.media-pending p:last-child {
  color: var(--muted);
  font-size: 13px;
}

.voice-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 0;
}

.big-quote {
  color: var(--amber);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.voice-copy > p:not(.big-quote) {
  color: var(--muted);
  line-height: 1.6;
}

.production-note {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12px;
  line-height: 1.5;
}

.production-note span {
  display: block;
  margin-bottom: 6px;
}

.layers-explainer {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(45, 58, 100, 0.28), rgba(13, 16, 39, 0.7));
}

.explainer-media {
  position: relative;
}

.explainer-media > video {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-solid);
}

.explainer-media.has-video > video {
  display: block;
}

.explainer-media.has-video .explainer-fallback {
  display: none;
}

.preview-label {
  display: block;
  margin-bottom: 10px;
  color: var(--amber);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: right;
}

.visible-layer,
.invisible-layer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 36px;
}

.visible-layer span {
  text-align: center;
  color: #d8d9e6;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.layer-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 4px;
  color: var(--ink);
}

.layer-heading strong {
  font-size: 13px;
  letter-spacing: 0.14em;
}

.layer-heading span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-align: right;
}

.waterline {
  display: flex;
  justify-content: center;
  padding: 7px 14px;
  color: var(--amber);
  background: rgba(255, 196, 107, 0.12);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.invisible-layer {
  padding-top: 48px;
  padding-bottom: 48px;
  background:
    linear-gradient(180deg, rgba(85, 57, 156, 0.12), rgba(5, 7, 22, 0.6)),
    repeating-linear-gradient(90deg, transparent, transparent 24.8%, rgba(255,255,255,0.04) 25%);
}

.invisible-layer div {
  align-self: center;
  color: #eeeaff;
  font-size: 17px;
  line-height: 1.35;
  text-align: center;
}

.layers-clarifier {
  max-width: 920px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.layers-clarifier strong {
  color: var(--ink);
}

.decode-lower {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 38px;
  margin-top: 28px;
}

.decode-copy {
  display: grid;
  gap: 8px;
  color: var(--muted);
  line-height: 1.65;
}

.mental-pyramid {
  display: grid;
  justify-items: center;
}

.pyramid-level {
  min-height: 66px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  margin-top: -1px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
  font: inherit;
  cursor: pointer;
  transition: filter 180ms ease, transform 180ms ease, background 180ms ease;
}

.pyramid-level:hover {
  filter: brightness(1.22);
}

.pyramid-level.is-selected {
  filter: drop-shadow(0 0 12px rgba(255, 196, 107, 0.48)) brightness(1.2);
  transform: translateY(-2px);
}

.pyramid-level span {
  color: var(--dim);
  font-size: 7px;
  letter-spacing: 0.16em;
}

.pyramid-level strong {
  font-size: 13px;
}

.pyramid-level small {
  color: var(--muted);
  font-size: 9px;
}

.pyramid-top {
  width: 46%;
}

.pyramid-middle {
  width: 72%;
  border-color: rgba(154, 124, 255, 0.65);
  background: linear-gradient(135deg, rgba(118, 87, 239, 0.38), rgba(154, 124, 255, 0.16));
}

.pyramid-middle strong {
  color: var(--amber);
}

.pyramid-base {
  width: 100%;
}

.mental-pyramid > p {
  margin: 13px 0 0;
  color: var(--amber);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-align: center;
}

.pyramid-detail {
  min-height: 188px;
  padding: 22px;
  border-left: 3px solid var(--violet);
  background: rgba(154, 124, 255, 0.08);
}

.pyramid-detail > span {
  color: var(--amber);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.pyramid-detail h3 {
  margin: 8px 0 10px;
  font-size: 25px;
}

.pyramid-detail p {
  margin-bottom: 10px;
  color: #d5d5e2;
  font-size: 14px;
  line-height: 1.55;
}

.pyramid-detail .pyramid-example {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.pyramid-example strong {
  color: var(--green);
}

.source-note {
  margin: 0;
  color: var(--dim);
  font-size: 9px;
  line-height: 1.5;
}

.definition-card {
  margin: 30px 0;
  padding: 28px 30px;
  border-left: 3px solid var(--violet);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hofstede-quote {
  position: relative;
  margin: 30px 0;
  padding: 30px 32px;
  border: 1px solid rgba(255, 196, 107, 0.3);
  background:
    linear-gradient(135deg, rgba(255, 196, 107, 0.08), rgba(154, 124, 255, 0.08)),
    var(--panel);
  box-shadow: var(--shadow);
}

.hofstede-quote::before {
  content: "“";
  position: absolute;
  top: -20px;
  right: 20px;
  color: rgba(255, 196, 107, 0.28);
  font-family: Georgia, serif;
  font-size: 110px;
  line-height: 1;
}

.hofstede-quote p {
  position: relative;
  margin-bottom: 18px;
  color: #f3f0ff;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.hofstede-quote cite {
  color: var(--amber);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.translation-label {
  margin: 0 0 -14px;
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.definition-card p {
  color: #d4d4e2;
  line-height: 1.65;
}

.definition-card p:last-child {
  margin-bottom: 0;
}

.definition-card strong {
  color: var(--amber);
}

.reflection-field,
.transfer-question {
  display: grid;
  gap: 10px;
}

.reflection-field > span,
.transfer-question > label {
  font-weight: 700;
}

textarea,
input[type="text"],
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

textarea,
input[type="text"] {
  padding: 14px;
}

textarea {
  resize: vertical;
}

select {
  min-height: 46px;
  padding: 0 12px;
}

option {
  color: #111;
}

.reflection-field small {
  color: var(--dim);
}

.sort-list {
  display: grid;
  gap: 14px;
}

.sort-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1.6fr) minmax(210px, 0.8fr);
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.sort-number {
  color: var(--amber);
  font-size: 11px;
  letter-spacing: 0.15em;
}

.sort-case {
  line-height: 1.45;
}

.inline-feedback {
  display: none;
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.inline-feedback.is-visible {
  display: block;
}

.inline-feedback.is-correct {
  color: var(--green);
}

.inline-feedback.is-consider {
  color: var(--amber);
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(460px, 1fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: 50px;
}

.tool-compass {
  position: relative;
  aspect-ratio: 1;
  width: min(600px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(154, 124, 255, 0.24);
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 49.8%, rgba(154,124,255,.14) 50%, transparent 50.2%),
    linear-gradient(-45deg, transparent 49.8%, rgba(154,124,255,.14) 50%, transparent 50.2%),
    radial-gradient(circle, rgba(154, 124, 255, 0.12), transparent 64%);
}

.compass-point {
  position: absolute;
  display: grid;
  gap: 6px;
  width: 34%;
  min-height: 98px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(12, 14, 33, 0.92);
  text-align: left;
}

.compass-point strong {
  color: var(--amber);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.compass-point span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.compass-point.is-activated {
  border-color: var(--green);
  background: rgba(119, 224, 189, 0.1);
}

.point-stop { top: -3%; left: 33%; }
.point-scan { top: 38%; right: -4%; }
.point-check { bottom: -3%; left: 33%; }
.point-adapt { top: 38%; left: -4%; }

.tool-core {
  position: absolute;
  inset: 36%;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: var(--violet-soft);
  text-align: center;
}

.tool-core span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.tool-core strong {
  margin-top: 3px;
  color: var(--amber);
  font-size: 11px;
}

.callback-panel {
  padding: 28px;
  border: 1px solid rgba(119, 224, 189, 0.3);
  background: rgba(119, 224, 189, 0.07);
}

.callback-panel blockquote {
  margin: 20px 0;
  font-size: 25px;
  line-height: 1.35;
}

.callback-panel > p:not(.feedback-label) {
  color: var(--muted);
  line-height: 1.55;
}

.impact-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 24px 0;
  padding: 13px;
  color: var(--amber);
  background: rgba(255, 196, 107, 0.08);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.quiz-form {
  display: grid;
  gap: 22px;
}

.quiz-question {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.quiz-question legend {
  width: 100%;
  margin-bottom: 16px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.quiz-question legend span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border: 1px solid var(--violet);
  border-radius: 50%;
  color: var(--amber);
  font-size: 11px;
}

.quiz-question > label:not([for]) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  color: #d5d5e1;
  line-height: 1.45;
}

.quiz-question input[type="radio"],
.quiz-question input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 4px;
}

.quiz-feedback {
  display: none;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.quiz-feedback.is-visible {
  display: block;
}

.quiz-feedback.is-correct {
  color: var(--green);
}

.quiz-feedback.is-incorrect {
  color: var(--amber);
}

.transfer-question {
  gap: 8px;
}

.transfer-question > label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.completion-grid {
  grid-template-columns: 0.8fr 1.2fr;
}

.unlocked-compass {
  width: min(330px, 78%);
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(89, 204, 255, 0.5);
  border-radius: 8px;
  background: #020917;
  box-shadow: 0 0 80px rgba(89, 204, 255, 0.16);
  transform: rotate(-2deg);
}

.unlocked-compass img {
  display: block;
  width: 100%;
}

.validated-seal {
  position: absolute;
  right: -13%;
  bottom: 13%;
  padding: 10px 14px;
  border: 3px double var(--green);
  color: var(--green);
  background: rgba(8, 16, 27, 0.9);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  transform: rotate(-10deg);
}

.unlocked-compass strong {
  padding: 12px;
  color: var(--green);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-align: center;
}

.unlock-pulse {
  position: absolute;
  inset: -10%;
  border: 1px solid rgba(119, 224, 189, 0.35);
  border-radius: 50%;
  animation: pulse 2.6s ease-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  from { transform: scale(0.9); opacity: 0.8; }
  to { transform: scale(1.12); opacity: 0; }
}

.completion-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 30px 0;
}

.completion-summary div {
  padding: 16px;
  border-top: 1px solid var(--line);
}

.completion-summary span,
.next-signal > span {
  display: block;
  margin-bottom: 8px;
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.completion-summary strong {
  color: var(--amber);
  font-size: 13px;
}

.next-signal {
  padding: 22px;
  border-left: 3px solid var(--amber);
  background: rgba(255, 196, 107, 0.07);
}

.next-signal p {
  font-size: 18px;
  line-height: 1.45;
}

.next-signal strong {
  color: var(--amber);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.completion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.pilot-feedback-panel {
  margin-top: 38px;
  padding: 28px;
  border: 1px solid rgba(154, 124, 255, 0.34);
  background: rgba(20, 23, 49, 0.9);
}

.pilot-feedback-panel form {
  display: grid;
  gap: 18px;
}

.pilot-feedback-panel form > label {
  margin-bottom: -10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.rating-question {
  padding: 0;
  border: 0;
}

.rating-question legend {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
}

.rating-scale,
.binary-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rating-scale label {
  position: relative;
}

.rating-scale input {
  position: absolute;
  opacity: 0;
}

.rating-scale span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}

.rating-scale label:has(input:checked) span {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(255, 196, 107, 0.08);
}

.binary-choice label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.feedback-saved {
  padding: 20px;
  border-left: 3px solid var(--green);
  background: rgba(119, 224, 189, 0.08);
}

.feedback-saved strong {
  color: var(--green);
}

.feedback-saved p {
  margin: 8px 0 0;
  color: var(--muted);
}

.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.is-hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .welcome-grid,
  .completion-grid,
  .voice-layout,
  .tool-layout {
    grid-template-columns: 1fr;
  }

  .welcome-grid {
    gap: 40px;
  }

  .compass-hero {
    width: min(340px, 90%);
  }

  .passport-hero {
    width: min(400px, 92%);
  }

  .tool-layout {
    gap: 70px;
  }

  .tool-compass {
    width: min(520px, 84vw);
  }

  .callback-panel {
    margin-top: 20px;
  }

  .visible-layer,
  .invisible-layer {
    grid-template-columns: repeat(2, 1fr);
  }

  .sort-card {
    grid-template-columns: 38px 1fr;
  }

  .sort-card select,
  .inline-feedback {
    grid-column: 2;
  }

  .completion-grid {
    padding-top: 10px;
  }
}

@media (max-width: 620px) {
  .app-shell {
    width: min(100% - 24px, 1180px);
  }

  .app-header {
    grid-template-columns: 1fr auto;
    min-height: 68px;
  }

  .mission-status {
    display: none;
  }

  .screen {
    padding: 36px 0 52px;
  }

  h1 {
    font-size: clamp(46px, 16vw, 68px);
  }

  h2 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .scene-frame {
    min-height: 520px;
    height: 520px;
  }

  .scene-frame > img {
    object-position: 43% center;
  }

  .scene-heading {
    top: 24px;
    left: 22px;
  }

  .scene-roles {
    top: 116px;
    right: 18px;
    left: 18px;
    width: auto;
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .dialogue-stage {
    left: 18px;
    bottom: 86px;
    width: calc(100% - 36px);
  }

  .dialogue-line {
    padding: 9px 11px;
    font-size: 13px;
  }

  .scene-play {
    right: 18px;
    bottom: 20px;
  }

  .screen-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .screen-actions button {
    width: 100%;
  }

  .confidence label {
    margin-right: 15px;
  }

  .visible-layer,
  .invisible-layer {
    padding: 24px 14px;
    gap: 22px 8px;
  }

  .invisible-layer div {
    font-size: 14px;
  }

  .decode-lower {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .decode-copy {
    gap: 6px;
  }

  .tool-compass {
    width: 88vw;
    margin-left: calc((100% - 88vw) / 2);
  }

  .completion-grid {
    overflow: hidden;
  }

  .compass-point {
    width: 40%;
    min-height: 96px;
    padding: 10px;
  }

  .point-stop { left: 30%; }
  .point-scan { right: -8%; }
  .point-check { left: 30%; }
  .point-adapt { left: -8%; }

  .compass-point span {
    font-size: 11px;
  }

  .tool-core {
    inset: 34%;
  }

  .completion-summary {
    grid-template-columns: 1fr;
  }

  .app-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 14px 0;
  }
}

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