:root {
  --acid: #def51f;
  --ink: #171712;
  --paper: #f7f7ef;
  --muted: #64645c;
  --line: rgba(23, 23, 18, 0.18);
  --shadow: 0 18px 40px rgba(23, 23, 18, 0.16);
  color-scheme: light;
  font-family:
    "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
}

button {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(23, 23, 18, 0.06) 1px, transparent 1px) 0 0 / 96px 96px,
    var(--paper);
}

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  border-bottom: 1px solid var(--ink);
}

.hero__brand {
  min-height: 520px;
  background: var(--ink);
  border-right: 1px solid var(--ink);
  overflow: hidden;
}

.hero__brand img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  filter: grayscale(0.04) contrast(1.08) saturate(1.08);
}

.hero__content {
  align-self: end;
  padding: clamp(28px, 7vw, 92px);
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 9.6em;
  margin-bottom: 24px;
  font-size: clamp(3.7rem, 6.2vw, 6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero__copy {
  max-width: 610px;
  margin-bottom: 34px;
  color: var(--muted);
  font-family:
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.9;
}

.primary-button,
.ghost-button {
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.primary-button {
  background: var(--ink);
  color: var(--acid);
  box-shadow: 6px 6px 0 var(--acid);
}

.ghost-button {
  background: transparent;
  color: var(--ink);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.quiz-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 0;
  min-height: 650px;
  border-bottom: 1px solid var(--ink);
}

.quiz-card {
  padding: clamp(24px, 6vw, 76px);
  background: var(--paper);
}

.quiz-card__topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  font-family:
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
}

.progress {
  height: 12px;
  border: 1px solid var(--ink);
  background: #fff;
  margin-bottom: clamp(34px, 5vw, 62px);
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--acid);
  transition: width 260ms ease;
}

.quiz-card h2 {
  max-width: 900px;
  margin-bottom: 34px;
  font-size: clamp(2.1rem, 4.2vw, 5rem);
  line-height: 1.08;
}

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

.answer-button {
  min-height: 118px;
  padding: 20px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 0 0 var(--ink);
  transition:
    color 180ms ease,
    box-shadow 180ms ease;
}

.answer-button:hover {
  box-shadow: 5px 5px 0 var(--ink);
}

.answer-button:focus-visible {
  box-shadow: inset 0 0 0 3px var(--acid);
  outline: none;
}

.answer-button strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.22rem;
  line-height: 1.35;
}

.answer-button span {
  display: block;
  color: var(--muted);
  font-family:
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: 0.92rem;
  line-height: 1.55;
}

.status-panel {
  padding: 34px 28px;
  border-left: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.status-panel__logo {
  width: min(220px, 100%);
  min-height: 48px;
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.status-panel__logo img {
  width: 100%;
  height: auto;
  display: block;
}

.status-panel p {
  margin-bottom: 18px;
  color: var(--acid);
  font-size: 1.1rem;
  font-weight: 800;
}

.status-panel ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family:
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
}

.status-panel li {
  display: grid;
  gap: 6px;
}

.status-panel span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
}

.meter {
  height: 8px;
  border: 1px solid rgba(247, 247, 239, 0.5);
}

.meter b {
  display: block;
  width: 0;
  height: 100%;
  background: var(--acid);
  transition: width 260ms ease;
}

.result {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
  min-height: 720px;
  border-bottom: 1px solid var(--ink);
}

.result[hidden] {
  display: none;
}

.result__poster {
  position: relative;
  display: grid;
  place-items: stretch;
  background:
    linear-gradient(90deg, rgba(222, 245, 31, 0.16) 1px, transparent 1px),
    linear-gradient(0deg, rgba(222, 245, 31, 0.16) 1px, transparent 1px),
    radial-gradient(circle at 18% 20%, rgba(222, 245, 31, 0.34), transparent 24%),
    var(--ink);
  background-size: 52px 52px, 52px 52px, auto, auto;
  border-right: 1px solid var(--ink);
  overflow: hidden;
}

.result__poster::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(18, 19, 15, 0) 38%, rgba(18, 19, 15, 0.42) 72%, rgba(18, 19, 15, 0.78) 100%),
    linear-gradient(90deg, rgba(18, 19, 15, 0.48), rgba(18, 19, 15, 0) 44%);
  pointer-events: none;
}

.result__poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(0.1) contrast(1.08);
}

.result__poster img[hidden],
.result__poster img:not([src]),
.result__poster img[src=""] {
  display: none;
}

.result__keyart {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: clamp(28px, 5vw, 70px);
  color: var(--paper);
}

.result__keyart span,
.result__keyart em {
  width: fit-content;
  padding: 7px 10px;
  background: var(--acid);
  color: var(--ink);
  font-family:
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 900;
}

.result__keyart strong {
  display: block;
  width: fit-content;
  max-width: calc(100% - 12px);
  padding: 10px 16px 13px;
  background:
    linear-gradient(90deg, var(--acid) 0%, rgba(222, 245, 31, 0.92) 62%, rgba(222, 245, 31, 0.22) 100%);
  color: var(--ink);
  font-size: clamp(1.1rem, 3.6vw, 2.8rem);
  font-weight: 900;
  line-height: 1.02;
  white-space: nowrap;
  word-break: keep-all;
  text-shadow: none;
  box-shadow: 10px 10px 0 rgba(18, 19, 15, 0.65);
}

.result__content {
  align-self: center;
  padding: clamp(28px, 7vw, 96px);
}

.result h2 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 5vw, 5.8rem);
  line-height: 1;
  white-space: nowrap;
}

.result__tagline {
  display: inline-block;
  margin-bottom: 24px;
  padding: 8px 12px;
  background: var(--acid);
  color: var(--ink);
  font-family:
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  font-weight: 800;
}

.result__content > p:not(.eyebrow):not(.result__tagline):not(.copy-note) {
  max-width: 650px;
  color: var(--muted);
  font-family:
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: 1.04rem;
  line-height: 1.9;
}

.result__watch {
  max-width: 650px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--ink);
  background: rgba(222, 245, 31, 0.16);
  font-family:
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
}

.result__watch span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 900;
}

.result__watch p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.result__watch-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.result__watch-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.result__watch-links a:hover {
  background: var(--ink);
  color: var(--paper);
}

.result__matches {
  margin-top: 32px;
}

.result__matches-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  max-width: 760px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  font-family:
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
}

.result__matches-heading span {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.result__matches-heading b {
  color: var(--muted);
  font-size: 0.82rem;
}

.result__source-note {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--muted);
  font-family:
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: 0.82rem;
  line-height: 1.65;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
}

.movie-card {
  min-height: 166px;
  padding: 16px;
  border: 1px solid var(--ink);
  background: rgba(247, 247, 239, 0.7);
}

.movie-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-family:
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.movie-card__meta span {
  padding: 4px 7px;
  background: var(--ink);
  color: var(--paper);
}

.movie-card__meta b {
  color: var(--ink);
  text-transform: none;
}

.movie-card h3 {
  margin-bottom: 6px;
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  line-height: 1.06;
  word-break: keep-all;
}

.movie-card p {
  font-family:
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
}

.movie-card__year {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.movie-card p:not(.movie-card__year) {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.share-panel {
  max-width: 650px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--ink);
  background: #fff;
  font-family:
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
}

.share-panel[hidden] {
  display: none;
}

.share-panel p {
  margin-bottom: 12px;
  font-size: 0.9rem;
  font-weight: 900;
}

.share-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-panel button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  background: var(--acid);
  color: var(--ink);
  cursor: pointer;
  font-family:
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
}

.share-panel button:hover,
.share-panel button:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline: none;
}

.copy-note {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--muted);
  font-family:
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .hero,
  .quiz-panel,
  .result {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__brand {
    min-height: 340px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .hero__brand img {
    object-position: 50% 48%;
  }

  .hero__content {
    align-self: auto;
  }

  h1 {
    max-width: 8.4em;
    font-size: clamp(3rem, 12vw, 4.7rem);
  }

  .answers {
    grid-template-columns: 1fr;
  }

  .status-panel {
    border-left: 0;
    border-top: 1px solid var(--ink);
  }

  .result__poster {
    min-height: 430px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .result__keyart strong {
    max-width: 100%;
    font-size: clamp(1.1rem, 6.8vw, 2.45rem);
  }

  .movie-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero__brand {
    min-height: 260px;
  }

  .hero__brand img {
    object-position: 50% 48%;
  }

  .quiz-card,
  .hero__content,
  .result__content {
    padding: 24px;
  }

  .quiz-card h2 {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .result h2 {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .result__keyart {
    padding: 24px;
  }

  .result__keyart strong {
    font-size: clamp(1rem, 6.2vw, 1.85rem);
  }

  .result__matches-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .movie-card {
    min-height: 0;
  }

  .answer-button {
    min-height: 104px;
  }
}
