:root {
  color-scheme: light;
  --ink: #0c1838;
  --muted: #526579;
  --paper: #edf7f7;
  --panel: rgba(248, 253, 252, 0.92);
  --line: rgba(12, 24, 56, 0.16);
  --asics: #17275c;
  --aqua: #2fc4bb;
  --lime: #d8ff72;
  --shadow: 0 28px 80px rgba(11, 26, 52, 0.2);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
}

body {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0);
  overflow: hidden;
  color: var(--ink);
  font-family: "Avenir Next", "Noto Sans TC", "PingFang TC", Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
  background:
    linear-gradient(128deg, rgba(47, 196, 187, 0.22), transparent 37%),
    linear-gradient(312deg, rgba(216, 255, 114, 0.2), transparent 36%),
    #edf7f7;
}

@supports (height: 100svh) {
  body {
    height: 100svh;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.68), transparent 26%),
    linear-gradient(128deg, rgba(47, 196, 187, 0.2), transparent 37%),
    linear-gradient(312deg, rgba(216, 255, 114, 0.18), transparent 36%);
  filter: blur(18px);
  transform: scale(1.04);
  pointer-events: none;
}

button,
input,
a {
  font: inherit;
}

button {
  border: 0;
}

.runner-wrapper {
  position: relative;
  z-index: 1;
  width: min(100vw, calc(100vh * 9 / 16));
  height: min(100vh, calc(100vw * 16 / 9));
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background:
    linear-gradient(128deg, rgba(47, 196, 187, 0.22), transparent 37%),
    linear-gradient(312deg, rgba(216, 255, 114, 0.2), transparent 36%),
    #edf7f7;
  box-shadow:
    0 30px 90px rgba(11, 26, 52, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.52);
}

@supports (height: 100svh) {
  .runner-wrapper {
    width: min(100vw, calc(100svh * 9 / 16));
    height: min(100svh, calc(100vw * 16 / 9));
  }
}

.runner-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 14px 18px;
  scrollbar-width: none;
}

.runner-shell::-webkit-scrollbar {
  display: none;
}

.runner-nav {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-height: 24px;
  color: rgba(12, 24, 56, 0.66);
  font-size: 14px;
  font-weight: 800;
}

.runner-nav a {
  color: var(--asics);
  text-decoration: none;
}

.runner-nav span {
  margin-left: auto;
}

body:has(#resultScreen:not([hidden])) .runner-nav {
  display: none;
}

body:has(#resultScreen:not([hidden])) .runner-shell {
  padding: 0;
  overflow: hidden;
}

.hero-screen {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
  min-height: 100%;
  padding: 0 0 18px;
}

.hero-visual {
  position: relative;
  width: calc(100% + 28px);
  height: min(32vh, 292px);
  min-height: 220px;
  margin-inline: -14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #c8e5e9;
  box-shadow: var(--shadow);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(12, 24, 56, 0.02), rgba(12, 24, 56, 0.36)),
    linear-gradient(42deg, rgba(47, 196, 187, 0.54), transparent 34%);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.06) contrast(1.02);
}

.gate-panel,
.quiz-frame,
.result-stage {
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.gate-panel {
  padding: clamp(20px, 5vw, 32px);
  margin-top: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--aqua);
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 560px;
  color: var(--asics);
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 span {
  display: block;
}

.lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.lead-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.lead-form label:not(.consent-row) {
  display: grid;
  gap: 8px;
}

.lead-form label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.lead-form input[type="text"],
.lead-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(12, 24, 56, 0.18);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.lead-form input:focus {
  border-color: var(--aqua);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 196, 187, 0.16);
}

.consent-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  padding: 4px 0;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--asics);
}

.consent-row span {
  line-height: 1.55;
}

.tnc-link {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--asics);
  background: transparent;
  font-size: inherit;
  font-weight: 1000;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.primary-button,
.ghost-button {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 1000;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  color: #fff;
  background: var(--asics);
  box-shadow: 0 12px 26px rgba(23, 39, 92, 0.22);
}

.primary-button:hover:not(:disabled),
.ghost-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.primary-button:active:not(:disabled),
.ghost-button:active:not(:disabled) {
  transform: scale(0.96);
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.ghost-button {
  border: 1px solid rgba(12, 24, 56, 0.18);
  color: var(--asics);
  background: rgba(255, 255, 255, 0.7);
}

.form-error {
  min-height: 20px;
  color: #bd3340;
  font-size: 13px;
  font-weight: 800;
}

.quiz-screen,
.result-screen {
  min-height: calc(100% - 24px);
  display: grid;
  place-items: center;
  padding: 18px 0;
}

.result-screen {
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 0;
}

.quiz-frame {
  width: 100%;
  padding: clamp(20px, 5vw, 34px);
}

.quiz-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
  color: var(--asics);
  font-size: 13px;
  font-weight: 1000;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 39, 92, 0.12);
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--aqua), var(--lime));
  transition: width 220ms ease;
}

.question-panel h2 {
  color: var(--asics);
  font-size: clamp(30px, 7vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.answer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 22px;
}

.answer-option {
  position: relative;
  min-height: 88px;
  padding: 14px 16px 14px 54px;
  border: 1px solid rgba(12, 24, 56, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.answer-option:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 196, 187, 0.72);
  background: #fff;
}

.answer-option.is-selected {
  border-color: var(--asics);
  background:
    linear-gradient(135deg, rgba(47, 196, 187, 0.18), rgba(216, 255, 114, 0.2)),
    #fff;
  box-shadow: 0 16px 34px rgba(12, 24, 56, 0.12);
}

.answer-option strong {
  position: absolute;
  top: 14px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--asics);
  font-size: 13px;
}

.answer-option span {
  display: block;
  font-size: 15px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.quiz-actions,
.result-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.result-stage {
  --result-accent: var(--aqua);
  --result-soft: #f2fcff;
  --result-ink: var(--asics);
  --shoe-primary: var(--result-accent);
  --shoe-secondary: var(--lime);
  --shoe-glow: var(--result-soft);
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(126px, 144px) auto auto minmax(112px, auto);
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px 16px 16px;
  background:
    radial-gradient(circle at 18% 8%, color-mix(in srgb, var(--shoe-primary) 16%, transparent) 0 18%, transparent 42%),
    radial-gradient(circle at 84% 20%, color-mix(in srgb, var(--shoe-secondary) 12%, transparent) 0 20%, transparent 45%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.97) 0 46%, color-mix(in srgb, var(--shoe-glow) 22%, white) 100%),
    var(--result-soft);
  isolation: isolate;
  box-shadow:
    0 28px 70px rgba(14, 40, 58, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(8, 33, 62, 0.1);
}

.result-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 44%, rgba(255, 255, 255, 0.58) 49%, transparent 54%),
    repeating-linear-gradient(115deg, color-mix(in srgb, var(--shoe-primary) 12%, transparent) 0 1px, transparent 1px 22px);
  opacity: 0;
  pointer-events: none;
}

.result-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68) 0 16%, transparent 34%),
    linear-gradient(90deg, color-mix(in srgb, var(--shoe-primary) 7%, transparent), transparent 19%, transparent 81%, color-mix(in srgb, var(--shoe-secondary) 8%, transparent)),
    linear-gradient(180deg, color-mix(in srgb, var(--shoe-primary) 6%, transparent), transparent 28%, transparent 74%, color-mix(in srgb, var(--shoe-secondary) 12%, transparent));
  pointer-events: none;
}

.result-stage > * {
  position: relative;
  z-index: 1;
}

.result-burst {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(64deg, transparent 0 30%, color-mix(in srgb, var(--shoe-primary) 20%, transparent) 30.2% 30.9%, transparent 31.1% 100%),
    linear-gradient(126deg, transparent 0 67%, color-mix(in srgb, var(--shoe-secondary) 18%, transparent) 67.2% 68%, transparent 68.2% 100%),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(23, 39, 92, 0.045) 35px, transparent 36px);
  opacity: 0;
}

.result-titlebar {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 76px;
  align-content: center;
  text-align: center;
}

.result-titlebar::after {
  content: "";
  width: min(260px, 52%);
  height: 4px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, var(--result-accent), #d8ff72, transparent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--result-accent) 45%, transparent);
}

.result-titlebar::before {
  content: "ASICS";
  position: absolute;
  top: 4px;
  left: 0;
  color: color-mix(in srgb, var(--result-accent) 36%, rgba(12, 24, 56, 0.38));
  font-size: 10px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: 0.16em;
}

.result-kicker {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 6px;
  align-items: center;
  color: var(--result-accent);
  font-size: 10px;
  line-height: 1;
  font-weight: 1000;
  text-transform: uppercase;
}

.result-kicker span {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--result-accent) 30%, transparent),
    0 8px 22px rgba(12, 24, 56, 0.08);
}

.result-kicker span:last-child {
  color: #0a1745;
  background: color-mix(in srgb, var(--result-accent) 16%, white);
}

.result-titlebar h2 {
  color: #05090f;
  font-size: clamp(30px, 7vw, 42px);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 8px 28px rgba(12, 24, 56, 0.12);
}

.shoe-layout {
  display: grid;
  align-items: end;
  justify-items: center;
  min-height: 0;
}

.shoe-duo-media {
  position: relative;
  width: min(720px, 100%);
  height: 100%;
  min-height: 120px;
  isolation: isolate;
}

.shoe-duo-media::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 2px;
  height: 38%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, color-mix(in srgb, var(--shoe-primary) 18%, transparent) 0 28%, color-mix(in srgb, var(--shoe-secondary) 10%, transparent) 46%, transparent 72%);
  filter: blur(10px);
  opacity: 0.78;
  z-index: -1;
}

.product-shot {
  position: absolute;
  bottom: 0;
  width: 47%;
  max-height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 22px 22px rgba(12, 24, 56, 0.18))
    drop-shadow(0 2px 0 rgba(255, 255, 255, 0.55));
  transform: translateY(16px) scale(0.94);
  opacity: 0;
  will-change: transform, opacity, filter;
}

.product-1 {
  left: 0;
}

.product-2 {
  right: 0;
}

.shoe-duo-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  color: rgba(12, 24, 56, 0.68);
  font-size: 10px;
  font-weight: 1000;
  margin-top: 4px;
}

.shoe-duo-meta span {
  min-height: 22px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(12, 24, 56, 0.06);
}

.shoe-pending {
  position: absolute;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 43%;
  min-height: 82px;
  border: 1px dashed rgba(12, 24, 56, 0.22);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-weight: 1000;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), color-mix(in srgb, var(--result-accent) 10%, white));
  box-shadow:
    0 18px 36px rgba(12, 24, 56, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  opacity: 0;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(206px, 1.08fr) minmax(138px, 0.92fr);
  gap: 14px;
  align-items: center;
  min-height: 0;
  margin-top: 0;
  padding: 9px 10px 9px 16px;
  border-radius: 22px;
  overflow: visible;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.7), color-mix(in srgb, var(--shoe-glow) 10%, rgba(255, 255, 255, 0.3)));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.54),
    0 16px 44px rgba(12, 24, 56, 0.07);
  backdrop-filter: blur(6px);
}

.radar-card {
  display: grid;
  justify-items: start;
  align-items: center;
  min-height: 0;
  padding-left: 6px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.76), transparent 68%);
}

.radar-wrap {
  width: min(218px, 100%);
  aspect-ratio: 1;
  opacity: 0;
  transform: translateX(-24px) scale(0.94);
  will-change: transform, opacity;
}

.radar-chart {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.radar-gridline {
  fill: none;
  stroke: rgba(12, 24, 56, 0.13);
  stroke-width: 1;
}

.radar-spoke {
  stroke: rgba(12, 24, 56, 0.12);
  stroke-width: 1;
}

.radar-area {
  transform-origin: 170px 170px;
  transform: scale(0.12);
  opacity: 0;
}

.radar-fill {
  fill: color-mix(in srgb, var(--result-accent) 46%, transparent);
  stroke: none;
}

.radar-stroke {
  fill: none;
  stroke: color-mix(in srgb, var(--result-accent) 48%, #3d82ff);
  stroke-width: 3;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--result-accent) 28%, transparent));
}

.radar-dot {
  fill: #fff;
  stroke: color-mix(in srgb, var(--result-accent) 45%, #3d82ff);
  stroke-width: 2.5;
}

.radar-label {
  dominant-baseline: middle;
  fill: rgba(12, 24, 56, 0.7);
  font-size: 14px;
  font-weight: 800;
}

.radar-label.is-selected {
  fill: #05090f;
  font-weight: 1000;
}

.result-copy {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 4px;
  min-width: 0;
  padding-left: 13px;
  transform: translateX(36px);
  text-align: left;
  opacity: 0;
  transform: translateX(28px);
  will-change: transform, opacity;
}

.result-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--result-accent), #d8ff72);
  box-shadow: 0 0 20px color-mix(in srgb, var(--result-accent) 42%, transparent);
}

.result-type {
  width: fit-content;
  color: #05090f;
  font-size: 42px;
  line-height: 0.84;
  font-weight: 1000;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 #fff,
    0 16px 32px rgba(12, 24, 56, 0.14);
}

.result-copy h2 {
  color: #05090f;
  font-size: 16px;
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
}

.ability-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 5px;
  margin: 7px 0 0;
  padding: 0;
  color: #05090f;
  list-style: none;
  width: 100%;
  font-size: 10.5px;
  line-height: 1.02;
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
}

.ability-list li {
  display: grid;
  grid-template-columns: auto;
  gap: 3px;
  align-items: start;
  min-height: 36px;
  padding: 5px 6px;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), color-mix(in srgb, var(--result-accent) 10%, white));
  box-shadow:
    0 10px 24px rgba(12, 24, 56, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.66);
  opacity: 0;
  transform: translateY(10px);
}

.ability-list strong {
  min-width: 0;
  color: color-mix(in srgb, var(--result-accent) 58%, #05090f);
  font-size: 1.25em;
  line-height: 0.92;
}

.ability-list span {
  color: #05090f;
  font-size: 0.84em;
  white-space: nowrap;
}

.result-description {
  position: relative;
  max-width: none;
  justify-self: stretch;
  color: #05090f;
  text-align: left;
  font-size: 14.5px;
  line-height: 1.48;
  font-weight: 1000;
  text-wrap: pretty;
  padding: 10px 8px 10px 32px;
  border-radius: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--result-accent) 12%, transparent), transparent 62%);
  box-shadow:
    inset 5px 0 0 color-mix(in srgb, var(--result-accent) 78%, #d8ff72),
    inset 0 -1px 0 rgba(12, 24, 56, 0.06);
  opacity: 0;
  transform: translateY(18px);
}

.result-description::before {
  content: "ASICS NOTE";
  position: absolute;
  left: 10px;
  top: 10px;
  writing-mode: vertical-rl;
  color: color-mix(in srgb, var(--result-accent) 58%, #0a1745);
  font-size: 8px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: 0;
}

.result-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px;
  gap: 10px;
  align-items: stretch;
}

.result-bottom-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.shoe-intro {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 54px;
  padding: 7px 12px;
  border-radius: 16px;
  overflow: hidden;
  color: #05090f;
  text-align: center;
  background:
    linear-gradient(120deg, #079aad, color-mix(in srgb, var(--result-accent) 44%, #079aad 56%));
  box-shadow:
    0 20px 50px rgba(7, 154, 173, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -18px 42px rgba(6, 26, 54, 0.12);
  opacity: 0;
  transform: translateY(24px);
}

.shoe-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, transparent 0 18%, rgba(255, 255, 255, 0.26) 19% 20%, transparent 21% 100%),
    repeating-linear-gradient(110deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 18px);
  opacity: 0.56;
}

.shoe-intro > * {
  position: relative;
}

.shoe-intro span {
  display: none;
  font-size: 18px;
  font-weight: 1000;
  color: #061425;
}

.shoe-intro strong {
  margin-top: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
}

.shoe-intro p {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 900;
}

.mail-status {
  display: none;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid rgba(12, 24, 56, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: rgba(12, 24, 56, 0.72);
  font-size: 12px !important;
  font-weight: 900;
}

.result-footer {
  display: grid;
  gap: 0;
  opacity: 0;
}

.result-footer .ghost-button {
  width: 100%;
  min-height: 40px;
  padding: 0 16px;
}

.report-qr {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 7px;
  border-radius: 16px;
  overflow: hidden;
  color: #0a1745;
  text-align: center;
  text-decoration: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), color-mix(in srgb, var(--result-accent) 10%, white));
  box-shadow:
    0 16px 38px rgba(12, 24, 56, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  opacity: 0;
  transform: translateY(18px);
}

.report-qr[hidden] {
  display: none !important;
}

.report-qr span {
  font-size: 10px;
  line-height: 1.12;
  font-weight: 1000;
}

.report-qr canvas {
  width: 96px !important;
  height: 96px !important;
  max-width: 100%;
  border: 4px solid #fff;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(12, 24, 56, 0.12);
}

.report-qr small {
  max-width: 100%;
  overflow: hidden;
  color: rgba(12, 24, 56, 0.58);
  font-size: 8px;
  line-height: 1;
  font-weight: 1000;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-stage.is-ready::before {
  animation: stageSweep 2100ms cubic-bezier(0.2, 0, 0, 1) both;
}

.result-stage.is-ready .result-burst {
  animation: burstGrid 1100ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.result-stage.is-ready .result-titlebar {
  animation: resultDrop 620ms cubic-bezier(0.16, 1, 0.3, 1) 80ms both;
}

.result-stage.is-ready .product-shot,
.result-stage.is-ready .shoe-pending {
  animation: shoeLaunch 900ms cubic-bezier(0.16, 1, 0.3, 1) both, shoeFloat 3300ms ease-in-out 950ms infinite alternate;
}

.result-stage.is-ready .product-2 {
  animation-delay: 160ms, 1120ms;
}

.result-stage.is-ready .shoe-duo-meta {
  animation: quickFade 500ms ease 680ms both;
}

.result-stage.is-ready .radar-wrap {
  animation: radarCardIn 650ms cubic-bezier(0.16, 1, 0.3, 1) 420ms both;
}

.result-stage.is-ready .radar-area {
  animation: radarGrow 900ms cubic-bezier(0.16, 1, 0.3, 1) 720ms both;
}

.result-stage.is-ready .result-copy {
  animation: resultSlideIn 650ms cubic-bezier(0.16, 1, 0.3, 1) 520ms both;
}

.result-stage.is-ready .ability-list li {
  animation: abilityPop 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.result-stage.is-ready .ability-list li:nth-child(1) {
  animation-delay: 780ms;
}

.result-stage.is-ready .ability-list li:nth-child(2) {
  animation-delay: 880ms;
}

.result-stage.is-ready .ability-list li:nth-child(3) {
  animation-delay: 980ms;
}

.result-stage.is-ready .ability-list li:nth-child(4) {
  animation-delay: 1080ms;
}

.result-stage.is-ready .result-description {
  animation: resultRise 620ms cubic-bezier(0.16, 1, 0.3, 1) 1140ms both;
}

.result-stage.is-ready .shoe-intro {
  animation: introPanel 720ms cubic-bezier(0.16, 1, 0.3, 1) 1280ms both;
}

.result-stage.is-ready .result-footer {
  animation: quickFade 500ms ease 1500ms both;
}

.result-stage.is-ready .report-qr {
  animation: resultRise 580ms cubic-bezier(0.16, 1, 0.3, 1) 1380ms both;
}

@keyframes stageSweep {
  0% {
    opacity: 0;
    transform: translateX(-36%);
  }
  22% {
    opacity: 1;
  }
  100% {
    opacity: 0.72;
    transform: translateX(36%);
  }
}

@keyframes burstGrid {
  from {
    opacity: 0;
    transform: scale(1.08) rotate(-0.8deg);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0);
  }
}

@keyframes resultDrop {
  from {
    opacity: 0;
    transform: translateY(-28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shoeLaunch {
  from {
    opacity: 0;
    transform: translateY(42px) scale(0.82) rotate(-2deg);
    filter: blur(6px) drop-shadow(0 14px 14px rgba(12, 24, 56, 0.12));
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
    filter: blur(0) drop-shadow(0 20px 20px rgba(12, 24, 56, 0.18));
  }
}

@keyframes shoeFloat {
  from {
    translate: 0 0;
  }
  to {
    translate: 0 -8px;
  }
}

@keyframes radarCardIn {
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes radarGrow {
  0% {
    opacity: 0;
    transform: scale(0.12) rotate(-10deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.04) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes resultSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes abilityPop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes resultRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introPanel {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  68% {
    opacity: 1;
    transform: translateY(-3px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes quickFade {
  to {
    opacity: 1;
  }
}

.tnc-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}

.tnc-dialog::backdrop {
  background: rgba(7, 18, 42, 0.58);
  backdrop-filter: blur(8px);
}

.tnc-panel {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  background: rgba(248, 253, 252, 0.98);
  box-shadow: var(--shadow);
}

.tnc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tnc-head .eyebrow {
  margin: 0;
}

.tnc-head button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(12, 24, 56, 0.16);
  border-radius: 8px;
  color: var(--asics);
  background: #fff;
  font-size: 12px;
  font-weight: 1000;
  cursor: pointer;
}

.tnc-panel h2 {
  margin-top: 18px;
  color: var(--asics);
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.08;
}

.tnc-panel ol {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding-left: 22px;
  color: #243750;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .hero-screen {
    grid-template-columns: 1fr;
  }

  .gate-panel {
    margin-top: 0;
  }

  .hero-visual {
    height: min(32vh, 292px);
    min-height: 220px;
  }

  .hero-visual img {
    min-height: 0;
  }

  .answer-grid,
  .score-strip,
  .shoe-layout {
    grid-template-columns: 1fr;
  }

  .result-stage {
    height: 100%;
    min-height: 0;
    grid-template-rows: auto minmax(130px, 148px) auto auto minmax(64px, auto) auto;
  }

  .radar-wrap {
    width: min(210px, 58%);
  }

  .shoe-duo-media {
    height: 124px;
  }
}

@media (max-width: 620px) {
  .runner-shell {
    padding: 0 14px 14px;
  }

  .runner-nav {
    gap: 12px;
    min-height: 0;
    font-size: 12px;
  }

  .runner-nav span {
    display: none;
  }

  .hero-screen,
  .quiz-screen,
  .result-screen {
    min-height: auto;
    padding: 0 0 14px;
  }

  .result-screen {
    height: 100%;
    padding: 0;
  }

  h1 {
    font-size: 32px;
    line-height: 1.04;
  }

  .answer-option {
    min-height: 116px;
  }

  .quiz-actions,
  .result-actions {
    flex-direction: column-reverse;
  }

  .result-stage {
    padding: 12px;
    gap: 8px;
  }

  .result-titlebar {
    min-height: 74px;
    gap: 5px;
  }

  .result-kicker {
    gap: 6px;
    font-size: 10px;
  }

  .result-kicker span {
    min-height: 21px;
    padding: 0 8px;
  }

  .result-titlebar h2 {
    font-size: 30px;
  }

  .shoe-duo-media {
    height: 124px;
    min-height: 118px;
  }

  .product-shot {
    width: 47%;
    max-height: 118px;
  }

  .product-1 {
    left: 0;
  }

  .product-2 {
    right: 0;
  }

  .shoe-pending {
    bottom: 8px;
    width: 43%;
    min-height: 88px;
    font-size: 19px;
  }

  .shoe-duo-meta {
    gap: 4px 10px;
    font-size: 10px;
  }

  .result-grid {
    grid-template-columns: minmax(136px, 0.86fr) minmax(178px, 1.14fr);
    gap: 6px;
    padding: 8px 10px;
    border-radius: 18px;
  }

  .radar-wrap {
    width: min(176px, 100%);
  }

  .result-type {
    font-size: clamp(42px, 13vw, 58px);
  }

  .result-copy {
    gap: 5px;
  }

  .result-copy h2 {
    font-size: clamp(16px, 4.7vw, 22px);
  }

  .ability-list {
    grid-template-columns: repeat(2, minmax(76px, 1fr));
    gap: 4px 8px;
    font-size: clamp(12px, 3.3vw, 15px);
  }

  .ability-list li {
    min-height: 42px;
    padding: 6px 7px;
    border-radius: 10px;
  }

  .ability-list strong {
    min-width: 0;
  }

  .result-description {
    font-size: 15px;
    line-height: 1.45;
  }

  .shoe-intro {
    min-height: 64px;
    padding: 8px 12px;
    border-radius: 20px;
  }

  .shoe-intro span {
    font-size: 18px;
  }

  .shoe-intro strong {
    font-size: 17px;
  }

  .shoe-intro p {
    font-size: 11px;
  }

  .result-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .result-grid {
    grid-template-columns: minmax(116px, 0.84fr) minmax(154px, 1.16fr);
    gap: 6px;
    padding: 7px 8px;
  }

  .radar-wrap {
    width: min(154px, 100%);
  }

  .result-type {
    font-size: clamp(38px, 12vw, 52px);
  }

  .ability-list {
    grid-template-columns: repeat(2, minmax(68px, 1fr));
    gap: 3px 6px;
    font-size: clamp(11px, 3.1vw, 13px);
  }

  .ability-list strong {
    min-width: 34px;
  }
}

/* Fixed 9:16 event layout: keep every step visually stable inside the wrapper. */
.runner-wrapper .quiz-frame {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: min(760px, calc(100% - 28px));
}

.runner-wrapper .result-stage {
  grid-template-rows: auto minmax(126px, 144px) auto auto minmax(112px, auto);
  gap: 10px;
  padding: 14px 16px 16px;
}

.runner-wrapper .question-panel {
  display: grid;
  grid-template-rows: auto minmax(132px, auto) auto;
  align-content: start;
}

.runner-wrapper .question-panel h2 {
  display: flex;
  align-items: flex-start;
  min-height: 132px;
}

.runner-wrapper .answer-grid {
  min-height: 374px;
  grid-auto-rows: minmax(86px, 1fr);
}

.runner-wrapper .answer-option {
  min-height: 86px;
}

.runner-wrapper .result-grid {
  grid-template-columns: minmax(208px, 1.08fr) minmax(138px, 0.82fr);
  gap: 16px;
  padding: 9px 10px 9px 16px;
  overflow: visible;
}

.runner-wrapper .radar-card {
  justify-items: start;
  padding-left: 4px;
  overflow: visible;
}

.runner-wrapper .radar-wrap {
  width: min(212px, 100%);
}

.runner-wrapper .radar-label {
  font-size: 13.5px;
}

.runner-wrapper .radar-label.is-stacked {
  font-size: 12.5px;
}

.runner-wrapper .result-copy {
  gap: 4px;
  margin-left: 5px;
  padding-left: 12px;
  transform: translateX(18px);
}

.runner-wrapper .result-type {
  font-size: 40px;
}

.runner-wrapper .result-copy h2 {
  font-size: 15px;
}

.runner-wrapper .ability-list {
  gap: 3px 5px;
  font-size: 10px;
}

.runner-wrapper .ability-list li {
  min-height: 33px;
  padding: 4px 5px;
}

.runner-wrapper .result-bottom {
  grid-template-columns: minmax(0, 1fr) 124px;
  gap: 10px;
}
