:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #17191c;
  --muted: #646b73;
  --line: #d9dee4;
  --coal: #222427;
  --coal-soft: #30343a;
  --red: #d7352a;
  --red-dark: #aa241d;
  --teal: #007c89;
  --teal-dark: #005d66;
  --gold: #e4aa21;
  --green: #138a54;
  --danger: #b3261e;
  --shadow: 0 18px 48px rgba(23, 25, 28, 0.12);
  font-family:
    "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

button {
  font: inherit;
}

.app {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 36px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr)) 44px;
  align-items: stretch;
  gap: 8px;
}

.stat,
.icon-button {
  min-height: 58px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(23, 25, 28, 0.06);
}

.stat {
  display: grid;
  place-items: center;
  padding: 8px 12px;
  border-radius: 8px;
}

.stat-label {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.1;
}

.stat strong {
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.1;
}

.icon-button {
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.3rem;
}

.icon-button:hover {
  border-color: var(--red);
}

.mode-row {
  display: flex;
  justify-content: center;
  margin: 0 0 14px;
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(118px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(23, 25, 28, 0.06);
}

.mode-button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 850;
}

.mode-button.is-active {
  background: var(--coal);
  color: #ffffff;
}

.mode-button:hover:not(.is-active) {
  background: #eef2f5;
  color: var(--ink);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  margin-bottom: 14px;
  padding: 0 2px;
}

.status-row p {
  margin: 0;
}

#roundLabel {
  color: var(--teal);
  font-weight: 800;
}

#statusText {
  color: var(--muted);
  text-align: right;
}

.board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
}

.movie-card {
  position: relative;
  isolation: isolate;
  min-height: 360px;
  border-radius: 8px;
  padding: 26px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto minmax(104px, auto) auto 1fr;
  overflow: hidden;
}

.movie-card > :not(.movie-art) {
  position: relative;
  z-index: 1;
}

.movie-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(
    --art-scene,
    linear-gradient(135deg, rgba(244, 181, 31, 0.24), transparent 58%)
  );
  transform: translateZ(0);
}

.movie-art::before,
.movie-art::after {
  content: "";
  position: absolute;
  pointer-events: none;
  transform: translateZ(0);
}

.movie-art::before {
  right: -6%;
  bottom: -18%;
  width: min(42%, 220px);
  aspect-ratio: 1;
  border-radius: 28px;
  background: var(--art-symbol-a);
  opacity: 0.58;
  transform: rotate(-10deg) translateZ(0);
}

.movie-art::after {
  left: -5%;
  top: -12%;
  width: min(34%, 180px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--art-symbol-b);
  opacity: 0.42;
}

.baseline-card {
  background: var(--coal);
  color: #ffffff;
}

.baseline-card .movie-art {
  opacity: 0.62;
}

.challenger-card {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.challenger-card .movie-art {
  opacity: 0.34;
  filter: saturate(0.92);
}

.challenger-card.is-revealed {
  border-color: var(--gold);
}

.movie-card.is-winner {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.card-kicker {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.challenger-card .card-kicker {
  color: var(--teal);
}

.movie-title {
  margin: 0;
  font-size: 1.85rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.movie-year {
  align-self: start;
  margin: 14px 0 0;
  color: inherit;
  opacity: 0.78;
  font-weight: 700;
}

.movie-source {
  align-self: start;
  min-height: 22px;
  margin: 8px 0 0;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0.62;
}

.fact-list {
  align-self: end;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  margin: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.challenger-card .fact-list {
  border-color: var(--line);
}

.fact-list div {
  padding-top: 18px;
}

.fact-list div + div {
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.challenger-card .fact-list div + div {
  border-color: var(--line);
}

.fact-list dt {
  margin-bottom: 8px;
  color: inherit;
  opacity: 0.7;
  font-size: 0.78rem;
  font-weight: 700;
}

.fact-list dd {
  margin: 0;
  min-height: 44px;
  font-size: 1.65rem;
  font-weight: 850;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

#baseRank,
#challengeRank {
  font-size: 1.02rem;
  line-height: 1.25;
}

.baseline-card .fact-list dd {
  color: #f7d66c;
}

.challenger-card .fact-list dd.locked {
  color: var(--muted);
}

.versus {
  position: relative;
  align-self: stretch;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 48px;
  min-height: 160px;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  font-weight: 900;
  box-shadow: none;
  z-index: 1;
}

.versus::before,
.versus::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.versus::before {
  top: 7%;
  bottom: 7%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(0, 136, 148, 0.45) 20%,
    rgba(244, 181, 31, 0.74) 50%,
    rgba(215, 53, 42, 0.42) 80%,
    transparent
  );
}

.versus::after {
  content: "VS";
  top: 50%;
  padding: 7px 0;
  background: var(--bg);
  color: rgba(31, 37, 43, 0.62);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

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

.choice {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  justify-content: center;
  align-items: center;
  column-gap: 10px;
  min-height: 88px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(23, 25, 28, 0.14);
}

.choice:disabled {
  cursor: default;
  filter: grayscale(0.2);
  opacity: 0.52;
}

.choice-icon {
  grid-row: 1 / span 2;
  font-size: 2rem;
  line-height: 1;
}

.choice-main {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}

.choice small {
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.86;
}

.high-choice {
  background: var(--red);
}

.high-choice:hover:not(:disabled) {
  background: var(--red-dark);
}

.low-choice {
  background: var(--teal);
}

.low-choice:hover:not(:disabled) {
  background: var(--teal-dark);
}

.result-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

#resultText {
  margin: 0;
  font-weight: 750;
  line-height: 1.5;
}

.result-panel.is-correct {
  border-color: rgba(19, 138, 84, 0.35);
  background: #f0faf5;
}

.result-panel.is-wrong {
  border-color: rgba(179, 38, 30, 0.35);
  background: #fff4f2;
}

.next-button {
  min-width: 132px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--coal-soft);
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

.next-button:hover {
  background: var(--ink);
}

.history-wrap {
  margin-top: 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.history-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.history-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 0.92rem;
}

.history-badge {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 900;
}

.history-badge.correct {
  background: var(--green);
}

.history-badge.wrong {
  background: var(--danger);
}

.history-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-revenue {
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 860px) {
  .app {
    width: min(100% - 24px, 640px);
    padding-top: 16px;
  }

  .topbar {
    display: grid;
    gap: 16px;
  }

  h1 {
    font-size: 1.55rem;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr) 44px;
  }

  .mode-row {
    justify-content: stretch;
  }

  .segmented {
    width: 100%;
  }

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

  #statusText {
    text-align: left;
  }

  .board {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .movie-card {
    min-height: 224px;
    padding: 18px;
  }

  .movie-title {
    font-size: 1.22rem;
  }

  .movie-year {
    margin-top: 8px;
  }

  .movie-source {
    min-height: 18px;
    margin-top: 6px;
  }

  .fact-list {
    margin-top: 18px;
  }

  .fact-list div {
    padding-top: 12px;
  }

  .fact-list dd {
    min-height: 34px;
    font-size: 1.18rem;
  }

  #baseRank,
  #challengeRank {
    font-size: 0.88rem;
  }

  .versus {
    width: 100%;
    height: 28px;
    min-height: 28px;
    justify-self: center;
    margin: -2px 0;
  }

  .versus::before {
    top: 50%;
    bottom: auto;
    left: 12%;
    right: 12%;
    width: auto;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(
      90deg,
      transparent,
      rgba(0, 136, 148, 0.45) 25%,
      rgba(244, 181, 31, 0.78) 50%,
      rgba(215, 53, 42, 0.45) 75%,
      transparent
    );
  }

  .versus::after {
    top: 50%;
    padding: 4px 0;
    transform: translate(-50%, -50%);
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    writing-mode: vertical-rl;
    text-orientation: upright;
  }

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

  .choice {
    min-height: 68px;
  }

  .result-panel {
    display: grid;
  }
}

@media (max-width: 460px) {
  .fact-list div + div {
    padding-left: 14px;
  }

  .history-list li {
    grid-template-columns: auto 1fr;
  }

  .history-revenue {
    grid-column: 2;
  }
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  min-height: 100vh;
  min-height: 100svh;
}

.app {
  height: 100vh;
  height: 100svh;
  padding: 8px 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  gap: 6px;
}

.topbar,
.mode-row,
.status-row,
.choices,
.result-panel,
.history-wrap {
  margin: 0;
}

.topbar {
  min-height: 0;
}

.mode-row {
  min-height: 38px;
}

.status-row {
  min-height: 30px;
}

.board {
  min-height: 0;
}

.movie-card {
  min-height: 0;
  height: 100%;
  padding: 18px 20px 14px;
  grid-template-rows: auto minmax(3rem, 1fr) auto minmax(5.4rem, auto);
}

.movie-title {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0.24em 0;
  text-align: center;
  font-size: clamp(1.4rem, 2.25vw, 2.18rem);
  line-height: 1.28;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.movie-year {
  align-self: center;
  justify-self: stretch;
  position: relative;
  width: 100%;
  margin-top: 6px;
  font-size: 0.92rem;
  text-align: center;
}

.movie-year::after {
  content: none;
}

.challenger-card .movie-year::after {
  content: none;
}

.movie-source {
  display: none;
}

.fact-list {
  grid-template-columns: 1fr;
  align-self: end;
  min-height: 5.4rem;
  margin-top: 6px;
  border-top: 0;
  text-align: center;
  display: grid;
  align-items: center;
  overflow: visible;
}

.fact-list div {
  padding-top: 4px;
  padding-bottom: 10px;
}

.fact-list div + div {
  display: none;
}

.fact-list dt {
  margin-bottom: 2px;
  font-size: 0.74rem;
}

.fact-list dd {
  min-height: 0;
  font-size: clamp(1.72rem, 2.8vw, 2.42rem);
  line-height: 1.12;
  padding: 0 0 0.22em;
  transform: translateY(-0.04em);
}

#baseRank,
#challengeRank {
  font-size: 0.92rem;
}

.choices {
  min-height: 58px;
}

.choice {
  min-height: 58px;
}

.result-panel {
  min-height: 48px;
  padding: 8px 14px;
}

#resultText {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.next-button {
  min-height: 38px;
}

.history-wrap {
  display: none;
}

@media (max-width: 860px) {
  .app {
    width: min(100% - 16px, 640px);
    padding: 8px 0;
    gap: 6px;
  }

  .topbar {
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

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

  .eyebrow {
    margin-bottom: 2px;
    font-size: 0.68rem;
  }

  h1 {
    font-size: 1.08rem;
  }

  .stats {
    gap: 6px;
  }

  .stat,
  .icon-button {
    min-height: 38px;
  }

  .stat {
    padding: 5px 6px;
  }

  .stat-label {
    font-size: 0.62rem;
  }

  .stat strong {
    font-size: 0.98rem;
  }

  .icon-button {
    font-size: 1rem;
  }

  .mode-row {
    min-height: 32px;
  }

  .segmented {
    padding: 3px;
  }

  .mode-button {
    min-height: 28px;
    font-size: 0.78rem;
  }

  .status-row {
    min-height: 0;
    gap: 2px;
    font-size: 0.72rem;
  }

  .board {
    gap: 6px;
  }

  .movie-card {
    padding: 9px 10px 8px;
    grid-template-rows: auto minmax(2.05rem, 1fr) auto minmax(3.85rem, auto);
  }

  .card-kicker {
    margin-bottom: 6px;
    font-size: 0.68rem;
  }

  .movie-title {
    padding: 0.16em 0;
    font-size: clamp(0.88rem, 3.9vw, 1.18rem);
    line-height: 1.26;
  }

  .movie-year {
    margin-top: 3px;
    font-size: 0.68rem;
  }

  .movie-year::after {
    bottom: -5px;
  }

  .movie-source {
    display: none;
  }

  .fact-list {
    min-height: 3.85rem;
    margin-top: 3px;
  }

  .fact-list div {
    padding-top: 2px;
    padding-bottom: 6px;
  }

  .fact-list dt {
    margin-bottom: 1px;
    font-size: 0.62rem;
  }

  .fact-list dd {
    min-height: 0;
    font-size: clamp(1rem, 4.45vw, 1.46rem);
    line-height: 1.12;
    padding-bottom: 0.2em;
  }

  #baseRank,
  #challengeRank {
    font-size: 0.68rem;
  }

  .versus {
    width: 100%;
    height: 22px;
    min-height: 22px;
    margin: -1px 0;
  }

  .choices {
    min-height: 44px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .choice {
    min-height: 44px;
    column-gap: 6px;
  }

  .choice-icon {
    font-size: 1.22rem;
  }

  .choice-main {
    font-size: 1.02rem;
  }

  .choice small {
    font-size: 0.62rem;
  }

  .result-panel {
    min-height: 44px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 7px 9px;
    font-size: 0.7rem;
  }

  #resultText {
    line-height: 1.35;
  }

  .next-button {
    min-width: 78px;
    min-height: 32px;
    font-size: 0.68rem;
  }
}

@media (max-width: 560px) {
  .app {
    width: min(100% - 10px, 420px);
    padding: 5px 0;
    gap: 4px;
  }

  .topbar {
    gap: 5px;
  }

  .brand {
    justify-content: center;
    gap: 6px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .eyebrow {
    display: none;
  }

  h1 {
    font-size: 0.98rem;
    line-height: 1.08;
    text-align: center;
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 36px;
    gap: 4px;
  }

  .stat,
  .icon-button {
    min-height: 32px;
    border-radius: 8px;
  }

  .stat {
    padding: 4px 5px;
  }

  .stat-label {
    font-size: 0.55rem;
  }

  .stat strong {
    font-size: 0.86rem;
    line-height: 1;
  }

  .icon-button {
    font-size: 0.92rem;
  }

  .mode-row {
    min-height: 30px;
  }

  .segmented {
    border-radius: 8px;
  }

  .mode-button {
    min-height: 26px;
    border-radius: 6px;
    font-size: 0.72rem;
  }

  .status-row {
    min-height: 18px;
  }

  #roundLabel {
    font-size: 0.78rem;
    text-align: center;
  }

  #statusText {
    display: none;
  }

  .board {
    grid-template-rows: minmax(0, 1fr) 18px minmax(0, 1fr);
    gap: 4px;
  }

  .movie-card {
    padding: 8px 9px 7px;
    border-radius: 8px;
    grid-template-rows: auto minmax(0, 1fr) auto minmax(3.45rem, auto);
  }

  .baseline-card .movie-art {
    opacity: 0.5;
  }

  .challenger-card .movie-art {
    opacity: 0.26;
  }

  .movie-art::before {
    right: -10%;
    bottom: -24%;
    width: 48%;
  }

  .movie-art::after {
    width: 38%;
  }

  .card-kicker {
    margin-bottom: 3px;
    font-size: 0.62rem;
  }

  .movie-title {
    padding: 0.08em 0;
    font-size: clamp(0.82rem, 4.15vw, 1.05rem);
    line-height: 1.18;
  }

  .movie-year {
    margin-top: 1px;
    font-size: 0.62rem;
  }

  .fact-list {
    min-height: 3.45rem;
    margin-top: 1px;
  }

  .fact-list div {
    padding-top: 1px;
    padding-bottom: 8px;
  }

  .fact-list dt {
    margin-bottom: 0;
    font-size: 0.56rem;
  }

  .fact-list dd {
    font-size: clamp(0.96rem, 4.8vw, 1.34rem);
    line-height: 1.1;
    padding-bottom: 0.22em;
  }

  .versus {
    width: 100%;
    height: 18px;
    min-height: 18px;
    margin: 0;
  }

  .versus::before {
    left: 16%;
    right: 16%;
  }

  .versus::after {
    padding: 3px 0;
    font-size: 0.56rem;
  }

  .choices {
    min-height: 42px;
    gap: 6px;
  }

  .choice {
    min-height: 42px;
    grid-template-columns: auto auto;
    column-gap: 5px;
    border-radius: 8px;
  }

  .choice-icon {
    font-size: 1.08rem;
  }

  .choice-main {
    font-size: 0.95rem;
  }

  .choice small {
    display: none;
  }

  .result-panel {
    min-height: 42px;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 0.66rem;
  }

  #resultText {
    line-height: 1.32;
  }

  .next-button {
    min-width: 68px;
    min-height: 28px;
    border-radius: 8px;
    font-size: 0.64rem;
  }

}

.answer-popup {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: auto;
  background: rgba(17, 24, 39, 0.18);
  animation: answer-popup-in 0.22s ease-out both;
}

.answer-dialog {
  width: min(94vw, 650px);
  border: 2px solid rgba(31, 37, 43, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 26px 70px rgba(23, 25, 28, 0.28);
  padding: 22px;
  text-align: center;
}

.answer-popup.is-correct .answer-dialog {
  border-color: rgba(19, 138, 84, 0.45);
}

.answer-popup.is-wrong .answer-dialog {
  border-color: rgba(179, 38, 30, 0.45);
}

.answer-symbol {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 12px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 16px 34px rgba(23, 25, 28, 0.18);
}

.answer-popup.is-correct .answer-symbol {
  background: var(--green);
}

.answer-popup.is-wrong .answer-symbol {
  background: var(--danger);
}

.answer-label {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
}

.answer-main {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.answer-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  margin: 18px 0 0;
}

.answer-movie {
  display: grid;
  grid-template-rows: auto minmax(2.8em, 1fr) auto auto;
  align-items: center;
  min-width: 0;
  border-radius: 8px;
  background: #f4f7f9;
  padding: 12px 10px;
}

.answer-movie.is-challenge {
  background: #eef8fa;
}

.answer-side {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.answer-title {
  display: grid;
  place-items: center;
  min-height: 2.7em;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.answer-year {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.answer-revenue {
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(1.28rem, 3vw, 1.72rem);
  font-weight: 900;
  line-height: 1.05;
}

.answer-vs {
  align-self: center;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(23, 25, 28, 0.16);
}

.answer-next {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.answer-action {
  min-width: 148px;
  min-height: 44px;
  margin-top: 16px;
  border: 0;
  border-radius: 8px;
  background: var(--coal-soft);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(23, 25, 28, 0.16);
}

.answer-action:hover {
  background: var(--ink);
}

@keyframes answer-popup-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@media (max-width: 560px) {
  .answer-popup {
    padding: 12px;
  }

  .answer-dialog {
    width: min(100%, 350px);
    padding: 16px 14px;
    border-radius: 10px;
  }

  .answer-symbol {
    width: 58px;
    height: 58px;
    margin-bottom: 9px;
    font-size: 2.45rem;
  }

  .answer-label {
    font-size: 1.32rem;
  }

  .answer-main {
    margin-top: 6px;
    font-size: 0.86rem;
  }

  .answer-matchup {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 12px;
  }

  .answer-movie {
    grid-template-rows: auto auto auto;
    padding: 9px 10px;
  }

  .answer-side {
    margin-bottom: 3px;
    font-size: 0.68rem;
  }

  .answer-title {
    min-height: 0;
    font-size: 0.82rem;
    line-height: 1.18;
  }

  .answer-year {
    margin-top: 4px;
    font-size: 0.64rem;
  }

  .answer-revenue {
    margin-top: 2px;
    font-size: 1.22rem;
  }

  .answer-vs {
    width: 30px;
    height: 30px;
    justify-self: center;
    font-size: 0.68rem;
  }

  .answer-next {
    margin-top: 10px;
    font-size: 0.74rem;
  }

  .answer-action {
    min-width: 132px;
    min-height: 38px;
    margin-top: 12px;
    font-size: 0.82rem;
  }
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
}

.site-links a {
  color: var(--muted);
  text-decoration: none;
}

.site-links a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.legal-page {
  min-height: 100vh;
  background: #f7f8fa;
}

.legal-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 36px;
}

.legal-home {
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 900;
  text-decoration: none;
}

.legal-nav {
  justify-content: flex-end;
  margin-top: 0;
  font-size: 0.84rem;
}

.legal-content {
  display: grid;
  gap: 16px;
}

.legal-kicker {
  margin: 0;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-content h1,
.legal-content h2,
.legal-content p {
  margin: 0;
}

.legal-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.14;
}

.legal-content h2 {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 1.08rem;
  line-height: 1.35;
}

.legal-content p {
  color: #3e454d;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.9;
}

.contact-mail {
  display: inline-flex;
  width: fit-content;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.contact-mail a {
  color: var(--teal);
  font-weight: 900;
}

@media (max-width: 560px) {
  .topbar .site-links {
    display: none;
  }

  .legal-shell {
    width: min(100% - 24px, 560px);
    padding: 20px 0 40px;
  }

  .legal-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
  }

  .legal-nav {
    display: flex;
    font-size: 0.76rem;
  }

  .legal-content {
    gap: 14px;
  }

  .legal-content h2 {
    margin-top: 14px;
    padding-top: 14px;
  }

  .legal-content p {
    font-size: 0.92rem;
    line-height: 1.8;
  }
}
