:root {
  color-scheme: dark;
  --navy-950: #040b16;
  --navy-900: #071426;
  --navy-850: #0b1b30;
  --navy-800: #10243d;
  --navy-700: #183452;
  --lime: #caff43;
  --lime-soft: #ddff86;
  --orange: #ff6b35;
  --cream: #f7f7ef;
  --muted: #9aabc0;
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(10, 27, 48, 0.78);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 15px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--navy-950);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--cream);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
}

a {
  color: inherit;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.site-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -10%, rgba(56, 104, 145, 0.3), transparent 42%),
    linear-gradient(180deg, #09182c 0%, #071426 48%, #040c17 100%);
}

.site-background::after {
  content: "";
  position: absolute;
  inset: auto -12% -35% -12%;
  height: 64%;
  border-radius: 50% 50% 0 0;
  opacity: 0.38;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(202, 255, 67, 0.16) 49.8%, rgba(202, 255, 67, 0.16) 50.2%, transparent 50.3%),
    linear-gradient(rgba(202, 255, 67, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(202, 255, 67, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(26, 81, 57, 0.24), rgba(5, 23, 24, 0.05));
  background-size: 100% 100%, 64px 64px, 64px 64px, 100% 100%;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: bottom;
}

.stadium-light {
  position: absolute;
  top: -22%;
  width: 42%;
  height: 100%;
  opacity: 0.42;
  filter: blur(4px);
  background: linear-gradient(165deg, rgba(217, 255, 130, 0.22), transparent 60%);
}

.stadium-light--left {
  left: -12%;
  transform: rotate(-13deg);
}

.stadium-light--right {
  right: -12%;
  transform: scaleX(-1) rotate(-13deg);
}

.pitch-lines {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: linear-gradient(90deg, transparent 49.85%, #fff 49.9%, #fff 50.1%, transparent 50.15%);
}

.noise-layer {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  padding: max(18px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.site-header,
.site-footer,
.app-main {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 4px;
  border: 0;
  color: var(--cream);
  background: transparent;
  cursor: pointer;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--lime);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.brand-copy > span {
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.header-badge {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  background: rgba(7, 20, 38, 0.5);
  backdrop-filter: blur(10px);
}

.app-main {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
}

.screen {
  width: 100%;
  animation: screen-in 0.55s var(--ease-out) both;
}

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

.start-screen {
  display: grid;
  min-height: min(720px, calc(100dvh - 150px));
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
  align-items: center;
  gap: clamp(36px, 7vw, 92px);
  padding-block: 48px 38px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--lime);
  font-size: clamp(0.68rem, 1.2vw, 0.78rem);
  font-weight: 800;
  letter-spacing: 0.16em;
}

.eyebrow span {
  width: 26px;
  height: 2px;
  background: currentColor;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.2rem, 7.2vw, 6.8rem);
  font-weight: 950;
  letter-spacing: -0.075em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-copy h1 em {
  position: relative;
  color: var(--lime);
  font-style: normal;
  white-space: nowrap;
  text-shadow: 0 0 44px rgba(202, 255, 67, 0.22);
}

.hero-copy h1 em::after {
  content: "";
  position: absolute;
  right: 2%;
  bottom: -7px;
  left: 3%;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  transform: rotate(-1.8deg) scaleX(0.88);
}

.hero-lead {
  margin: clamp(26px, 4vw, 38px) 0 0;
  color: #c2cdda;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.85;
}

.test-stats {
  display: flex;
  width: fit-content;
  margin: 34px 0;
  border-block: 1px solid var(--line);
}

.test-stats > div {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 7px;
  padding: 15px 22px;
}

.test-stats > div + div {
  border-left: 1px solid var(--line);
}

.test-stats strong {
  color: var(--cream);
  font-size: 1.38rem;
  font-weight: 900;
}

.test-stats span {
  color: var(--muted);
  font-size: 0.75rem;
}

.primary-button,
.secondary-button,
.text-button {
  position: relative;
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  padding: 0 24px;
  color: #071426;
  background: var(--lime);
  box-shadow: 0 12px 34px rgba(202, 255, 67, 0.19);
}

.primary-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.45) 46%, transparent 72%);
  transform: translateX(-120%);
  transition: transform 0.65s ease;
}

.primary-button:hover::after {
  transform: translateX(120%);
}

.primary-button svg {
  width: 22px;
  height: 22px;
}

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

.primary-button:active,
.secondary-button:active,
.text-button:active {
  transform: translateY(0) scale(0.98);
}

.start-button {
  min-width: 250px;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 16px 0 0 5px;
  color: #71859d;
  font-size: 0.72rem;
}

.privacy-note svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.hero-visual {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1;
  justify-self: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  opacity: 0.5;
  background: radial-gradient(circle, rgba(202, 255, 67, 0.18), transparent 64%);
  filter: blur(12px);
}

.orbit {
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(202, 255, 67, 0.22);
  border-radius: 50%;
}

.orbit::after {
  content: "";
  position: absolute;
  top: 13%;
  right: 9%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 18px var(--lime);
}

.orbit--one {
  animation: orbit-spin 15s linear infinite;
}

.orbit--two {
  inset: 4%;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.09);
  animation: orbit-spin 24s linear infinite reverse;
}

@keyframes orbit-spin {
  to { transform: rotate(1turn); }
}

.hero-ball {
  position: absolute;
  inset: 21%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.36));
  animation: ball-float 5s ease-in-out infinite;
}

.hero-ball svg {
  width: 100%;
  height: 100%;
  transform: rotate(-12deg);
}

@keyframes ball-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

.floating-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px 9px 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: #d8e1ec;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(10, 27, 48, 0.86);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.floating-tag b {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy-900);
  background: var(--lime);
  font-size: 0.78rem;
}

.floating-tag--one { top: 12%; left: -1%; transform: rotate(-5deg); }
.floating-tag--two { top: 25%; right: -5%; transform: rotate(4deg); }
.floating-tag--three { right: 5%; bottom: 12%; transform: rotate(-3deg); }
.floating-tag--three b { color: white; background: var(--orange); }

.spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--orange);
  transform: rotate(45deg);
}

.spark--one { top: 8%; right: 29%; }
.spark--two { bottom: 25%; left: 6%; width: 5px; height: 5px; background: var(--lime); }
.spark--three { right: 1%; bottom: 40%; width: 4px; height: 4px; }

.quiz-screen {
  max-width: 720px;
  padding-block: 34px 54px;
}

.quiz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.back-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 2px;
  padding: 0 12px 0 5px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.back-button svg {
  width: 24px;
  height: 24px;
}

.back-button:disabled {
  opacity: 0.32;
  cursor: default;
}

.progress-copy {
  display: flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}

.progress-copy strong {
  color: var(--lime);
  font-size: 1.55rem;
  font-weight: 900;
}

.progress-copy span {
  margin-left: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.progress-track {
  height: 5px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.progress-track span {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lime), #ecffab);
  box-shadow: 0 0 14px rgba(202, 255, 67, 0.42);
  transition: width 0.45s var(--ease-out);
}

.question-card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 38%),
    rgba(9, 25, 45, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.question-card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(202, 255, 67, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(202, 255, 67, 0.025), 0 0 0 68px rgba(202, 255, 67, 0.018);
}

.question-card.is-changing {
  animation: question-change 0.42s var(--ease-out) both;
}

@keyframes question-change {
  0% { opacity: 0; transform: translateX(18px); }
  100% { opacity: 1; transform: translateX(0); }
}

.scenario-label {
  position: relative;
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 11px;
  border-radius: 8px;
  color: var(--navy-900);
  background: var(--lime);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.question-card h2 {
  position: relative;
  max-width: 620px;
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.38;
  text-wrap: balance;
}

.question-hint {
  position: relative;
  margin: 12px 0 26px;
  color: var(--muted);
  font-size: 0.76rem;
}

.answer-list {
  position: relative;
  display: grid;
  gap: 12px;
}

.answer-option {
  display: grid;
  min-height: 64px;
  grid-template-columns: 35px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #dde6f0;
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out);
}

.answer-letter {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  transition: inherit;
}

.answer-text {
  font-size: 0.93rem;
  font-weight: 650;
  line-height: 1.55;
}

.answer-check {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: var(--navy-900);
}

.answer-check svg {
  width: 13px;
  opacity: 0;
}

.answer-option:hover,
.answer-option:focus-visible {
  border-color: rgba(202, 255, 67, 0.65);
  color: white;
  background: rgba(202, 255, 67, 0.075);
  transform: translateX(4px);
}

.answer-option[aria-checked="true"] {
  border-color: var(--lime);
  color: white;
  background: rgba(202, 255, 67, 0.13);
  box-shadow: 0 0 0 1px rgba(202, 255, 67, 0.2), 0 12px 28px rgba(0, 0, 0, 0.17);
}

.answer-option[aria-checked="true"] .answer-letter,
.answer-option[aria-checked="true"] .answer-check {
  border-color: var(--lime);
  color: var(--navy-900);
  background: var(--lime);
}

.answer-option[aria-checked="true"] .answer-check svg {
  opacity: 1;
}

.answer-option:disabled {
  cursor: default;
}

.keyboard-hint {
  margin: 14px 0 0;
  color: #60748c;
  font-size: 0.68rem;
  text-align: center;
}

.calculating-screen {
  max-width: 600px;
  padding-block: 72px;
  text-align: center;
}

.calculation-visual {
  position: relative;
  width: 210px;
  height: 210px;
  margin: 0 auto 34px;
}

.scan-ring {
  position: absolute;
  border-radius: 50%;
}

.scan-ring--outer {
  inset: 0;
  border: 1px dashed rgba(202, 255, 67, 0.34);
  animation: orbit-spin 5s linear infinite;
}

.scan-ring--outer::before,
.scan-ring--outer::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 14px var(--orange);
}

.scan-ring--outer::before { top: -3px; }
.scan-ring--outer::after { bottom: -3px; }

.scan-ring--inner {
  inset: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 50px rgba(202, 255, 67, 0.08), 0 0 50px rgba(202, 255, 67, 0.07);
  animation: scan-pulse 1.8s ease-in-out infinite;
}

@keyframes scan-pulse {
  50% { transform: scale(0.94); opacity: 0.58; }
}

.scan-ball {
  position: absolute;
  inset: 68px;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.35));
  animation: ball-float 2.6s ease-in-out infinite;
}

.scan-ball svg {
  width: 100%;
  height: 100%;
}

.eyebrow--center {
  justify-content: center;
}

.calculating-screen h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.calculation-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 19px;
  color: var(--muted);
  font-size: 0.86rem;
}

.calculation-status i,
.calculation-status i::before,
.calculation-status i::after {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
  animation: dot-pulse 1.2s ease-in-out infinite;
}

.calculation-status i {
  position: relative;
  margin-left: 9px;
}

.calculation-status i::before,
.calculation-status i::after {
  content: "";
  position: absolute;
  top: 0;
}

.calculation-status i::before { left: -8px; animation-delay: -0.2s; }
.calculation-status i::after { right: -8px; animation-delay: 0.2s; }

@keyframes dot-pulse {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.result-screen {
  position: relative;
  max-width: 980px;
  padding-block: 34px 42px;
}

.result-kicker {
  margin: 0 0 12px;
  color: var(--lime);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-align: center;
}

.result-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(290px, 0.8fr) minmax(0, 1.2fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(9, 25, 45, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.result-media {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(202, 255, 67, 0.2), transparent 45%),
    var(--navy-800);
}

.result-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.93) contrast(1.04);
  animation: photo-reveal 0.8s var(--ease-out) both;
}

@keyframes photo-reveal {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1); }
}

.photo-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 12, 23, 0.08) 42%, rgba(5, 12, 23, 0.72) 100%),
    linear-gradient(90deg, transparent 85%, rgba(7, 20, 38, 0.2));
  pointer-events: none;
}

.country-pill {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: white;
  font-size: 0.73rem;
  font-weight: 800;
  background: rgba(5, 12, 23, 0.48);
  backdrop-filter: blur(12px);
}

.match-score {
  --score-deg: 0deg;
  position: absolute;
  right: 18px;
  bottom: 20px;
  display: grid;
  width: 112px;
  height: 112px;
  place-content: center;
  border-radius: 50%;
  text-align: center;
  background:
    radial-gradient(circle at center, #0a1b30 58%, transparent 59%),
    conic-gradient(var(--lime) var(--score-deg), rgba(255, 255, 255, 0.18) 0);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4), inset 0 0 0 5px rgba(7, 20, 38, 0.72);
}

.match-score span {
  display: flex;
  align-items: baseline;
  justify-content: center;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.match-score strong {
  font-size: 2rem;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.match-score small {
  font-size: 0.7rem;
  font-weight: 900;
}

.match-score em {
  margin-top: 4px;
  color: #a7b7c9;
  font-size: 0.58rem;
  font-style: normal;
  letter-spacing: 0.09em;
}

.photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(202, 255, 67, 0.2), transparent 55%), var(--navy-800);
}

.photo-fallback span {
  color: rgba(202, 255, 67, 0.6);
  font-size: 6rem;
  font-weight: 950;
}

.result-copy {
  position: relative;
  padding: clamp(28px, 5vw, 52px);
}

.result-copy::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  opacity: 0.4;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(202, 255, 67, 0.1) 50%),
    linear-gradient(transparent 49.5%, rgba(202, 255, 67, 0.1) 50%);
  background-size: 32px 32px;
  mask-image: linear-gradient(225deg, #000, transparent 76%);
}

.result-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.result-copy h2 {
  margin: 0;
  font-size: clamp(2.65rem, 6vw, 4.6rem);
  font-weight: 950;
  letter-spacing: -0.07em;
  line-height: 1.05;
}

.player-en {
  margin: 8px 0 0;
  color: #71859d;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.archetype-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.archetype-title span {
  padding: 5px 7px;
  border: 1px solid rgba(255, 107, 53, 0.45);
  border-radius: 6px;
  color: #ff956e;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.archetype-title strong {
  color: var(--lime);
  font-size: 1.18rem;
  font-weight: 900;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.keyword-list span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #b7c5d4;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.035);
}

.result-description {
  margin: 24px 0 0;
  color: #d1dbe5;
  font-size: 0.92rem;
  line-height: 1.85;
}

.world-cup-fact {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(202, 255, 67, 0.17);
  border-radius: 16px;
  background: rgba(202, 255, 67, 0.055);
}

.fact-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--navy-900);
  background: var(--lime);
  font-size: 0.82rem;
  font-weight: 950;
  transform: rotate(-4deg);
}

.world-cup-fact h3 {
  margin: 0 0 5px;
  font-size: 0.72rem;
  font-weight: 900;
}

.world-cup-fact p {
  margin: 0;
  color: #aebdcc;
  font-size: 0.72rem;
  line-height: 1.62;
}

.world-cup-fact a {
  display: inline-block;
  margin-top: 7px;
  color: var(--lime);
  font-size: 0.66rem;
  font-weight: 750;
  text-underline-offset: 3px;
}

.result-actions {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 10px;
  margin-top: 24px;
}

.result-actions .primary-button,
.result-actions .secondary-button {
  min-height: 52px;
  padding-inline: 16px;
  font-size: 0.82rem;
}

.secondary-button {
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--cream);
  background: rgba(255, 255, 255, 0.055);
}

.text-button {
  grid-column: 1 / -1;
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  font-size: 0.76rem;
}

.text-button svg {
  width: 19px;
  height: 19px;
}

.photo-credit {
  margin: 13px auto 0;
  color: #71859d;
  font-size: 0.65rem;
  text-align: center;
}

.photo-credit summary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  cursor: pointer;
}

.photo-credit p {
  margin: 4px 0 0;
  line-height: 1.6;
}

.photo-credit a {
  text-underline-offset: 3px;
}

.result-disclaimer {
  margin: 9px 0 0;
  color: #52677f;
  font-size: 0.62rem;
  line-height: 1.6;
  text-align: center;
}

.confetti {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  width: 7px;
  height: 13px;
  border-radius: 2px;
  animation: confetti-fall var(--fall-duration, 2.8s) var(--fall-delay, 0s) cubic-bezier(0.2, 0.7, 0.35, 1) both;
}

@keyframes confetti-fall {
  0% { opacity: 0; transform: translate3d(0, -20px, 0) rotate(0); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--drift, 30px), 760px, 0) rotate(720deg); }
}

.error-screen {
  max-width: 520px;
  padding-block: 80px;
  text-align: center;
}

.error-screen > span {
  display: block;
  margin-bottom: 18px;
  font-size: 4rem;
}

.error-screen h2 {
  margin: 0;
  font-size: 2.1rem;
}

.error-screen p {
  margin: 12px 0 24px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  min-height: 40px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  color: #40566f;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
}

.site-footer p {
  margin: 0;
  letter-spacing: 0.03em;
}

.toast {
  position: fixed;
  z-index: 50;
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 12px));
  left: 50%;
  max-width: calc(100% - 40px);
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  opacity: 0;
  color: white;
  background: rgba(8, 23, 41, 0.96);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  transform: translate(-50%, 15px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out);
  pointer-events: none;
}

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

.noscript-message {
  position: fixed;
  z-index: 100;
  inset: 20px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: white;
  background: var(--navy-900);
  text-align: center;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .start-screen {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
    gap: 20px;
  }

  .floating-tag--one { left: -8%; }
  .floating-tag--two { right: -10%; }

  .result-card {
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  }

  .result-media {
    min-height: 590px;
  }
}

@media (max-width: 700px) {
  .app-shell {
    padding-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right));
  }

  .site-header {
    min-height: 46px;
  }

  .brand-mark {
    width: 33px;
    height: 33px;
  }

  .brand-copy > span { font-size: 0.75rem; }
  .brand-copy small { font-size: 0.55rem; }
  .header-badge { display: none; }

  .app-main {
    align-items: flex-start;
  }

  .start-screen {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 22px;
    padding-block: 44px 30px;
  }

  .hero-copy {
    text-align: center;
  }

  .eyebrow {
    justify-content: center;
    margin-bottom: 17px;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
    line-height: 1.02;
  }

  .hero-copy h1 em::after {
    height: 5px;
    bottom: -4px;
  }

  .hero-lead {
    margin-top: 23px;
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .desktop-break { display: none; }

  .test-stats {
    width: 100%;
    justify-content: center;
    margin: 26px 0;
  }

  .test-stats > div {
    display: flex;
    flex: 1;
    max-width: 126px;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 12px 7px;
  }

  .test-stats strong { font-size: 1.23rem; }
  .test-stats span { font-size: 0.66rem; }

  .start-button {
    width: 100%;
  }

  .privacy-note {
    justify-content: center;
    margin-left: 0;
    font-size: 0.64rem;
  }

  .hero-visual {
    order: -1;
    width: min(72vw, 300px);
    margin-top: -10px;
  }

  .floating-tag {
    padding: 6px 9px 6px 6px;
    font-size: 0.6rem;
  }

  .floating-tag b {
    width: 22px;
    height: 22px;
    font-size: 0.65rem;
  }

  .floating-tag--one { left: -9%; }
  .floating-tag--two { right: -16%; }
  .floating-tag--three { right: -3%; }

  .quiz-screen {
    padding-block: 30px 38px;
  }

  .question-card {
    padding: 24px 18px 20px;
    border-radius: 24px;
  }

  .question-card h2 {
    font-size: clamp(1.42rem, 6vw, 1.85rem);
    line-height: 1.42;
  }

  .question-hint {
    margin-bottom: 20px;
  }

  .answer-option {
    min-height: 66px;
    grid-template-columns: 34px minmax(0, 1fr) 20px;
    gap: 10px;
    padding: 9px 12px;
  }

  .answer-text {
    font-size: 0.86rem;
  }

  .keyboard-hint { display: none; }

  .calculating-screen {
    padding-block: 92px 50px;
  }

  .result-screen {
    padding-block: 28px 34px;
  }

  .result-card {
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .result-media {
    min-height: auto;
    aspect-ratio: 4 / 4.35;
  }

  .photo-shade {
    background: linear-gradient(180deg, rgba(5, 12, 23, 0.02) 45%, rgba(9, 25, 45, 0.92) 100%);
  }

  .match-score {
    right: 16px;
    bottom: 16px;
    width: 102px;
    height: 102px;
  }

  .match-score strong { font-size: 1.8rem; }

  .result-copy {
    margin-top: -2px;
    padding: 26px 19px 24px;
  }

  .result-copy h2 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .result-description {
    font-size: 0.86rem;
  }

  .world-cup-fact {
    grid-template-columns: 39px minmax(0, 1fr);
    padding: 14px;
  }

  .fact-icon {
    width: 38px;
    height: 38px;
  }

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

  .site-footer {
    font-size: 0.52rem;
  }
}

@media (max-width: 370px) {
  .app-shell { padding-inline: 10px; }
  .hero-copy h1 { font-size: 2.65rem; }
  .hero-visual { width: 230px; }
  .question-card { padding-inline: 14px; }
  .answer-option { padding-inline: 10px; }
  .answer-letter { width: 31px; height: 31px; }
  .result-actions { grid-template-columns: 1fr; }
  .text-button { grid-column: auto; }
  .world-cup-fact { grid-template-columns: 1fr; }
}

@media (max-height: 680px) and (orientation: landscape) {
  .start-screen {
    min-height: auto;
    padding-block: 22px;
  }

  .hero-visual {
    width: min(45vh, 350px);
  }

  .quiz-screen {
    padding-block: 20px;
  }
}

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

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

@media (hover: none) {
  .answer-option:hover,
  .primary-button:hover,
  .secondary-button:hover,
  .text-button:hover {
    transform: none;
  }
}
