/* The pregame questionnaire (/dilemas): a players' front, in the stage look.
   One short question, two big pictures, one tap. Page tokens first (Polaris
   naming); everything else comes from tokens.css. */

.sorting-body {
  --p-color-dilema-a: var(--p-color-bg-fill-info);       /* the first option: blue, as in the big screen's table */
  --p-color-dilema-b: var(--p-color-bg-fill-warning);    /* the second option: amber */
  --p-color-dilema-scrim: rgba(8, 10, 18, 0.92);         /* behind a name, over its picture */
  --p-color-dilema-product: #f3f1ea;                     /* behind a product shot that is shown whole */
  --p-space-dilema-gutter: var(--p-space-500);
  --p-space-dilema-versus: 44px;
  --p-border-radius-dilema-card: 22px;
  --p-shadow-dilema-text: 0 2px 12px rgba(0, 0, 0, 0.8);
  --p-motion-dilema-in: 260ms;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 0 0, color-mix(in srgb, var(--p-color-bg-fill-brand) 16%, transparent), transparent 55%),
    var(--p-color-bg);
}

.sorting-visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Shell: a one-line header, the stage, a footnote */
.sorting-app { max-width: 960px; margin: 0 auto; padding: 0 var(--p-space-dilema-gutter); }
.sorting-header {
  display: flex; justify-content: space-between; align-items: center; gap: var(--p-space-300);
  min-height: 60px; border-bottom: 1px solid var(--p-color-border-secondary);
}
.sorting-brand {
  display: inline-flex; gap: var(--p-space-200); align-items: center; min-height: 44px; flex-shrink: 0;
  text-decoration: none; white-space: nowrap; color: var(--p-color-text); font-weight: var(--p-font-weight-bold);
}
.sorting-header__player { display: flex; align-items: center; justify-content: flex-end; gap: var(--p-space-300); min-width: 0; }
.sorting-identity {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--p-font-size-body-sm); color: var(--p-color-text-secondary);
}
.sorting-identity:empty { display: none; }
.sorting-language-compact { display: block; flex-shrink: 0; }
.sorting-language-select {
  min-height: 44px; max-width: 100%; padding: var(--p-space-200);
  border: 1px solid var(--p-color-border); border-radius: var(--p-border-radius-200);
  color: var(--p-color-text); background: var(--p-color-bg-surface); font: inherit; font-size: 1rem;
}
.sorting-language-select:disabled { opacity: 0.6; }
.sorting-stage { min-height: min(70vh, 640px); padding: var(--p-space-600) 0; }
.sorting-footer {
  text-align: center; font-size: var(--p-font-size-body-xs); color: var(--p-color-text-secondary); line-height: 1.6;
  padding: var(--p-space-500) 0 calc(var(--p-space-600) + env(safe-area-inset-bottom));
}
.sorting-body .btn--plain { min-height: 44px; }
.sorting-body a.btn { text-decoration: none; }
.sorting-eyebrow {
  font-size: var(--p-font-size-body-xs); letter-spacing: 0.13em; text-transform: uppercase;
  font-weight: var(--p-font-weight-bold); color: var(--p-color-text-secondary);
}
.sorting-connection, .sorting-feedback {
  padding: var(--p-space-300) var(--p-space-400); border-radius: var(--p-border-radius-200);
  margin-top: var(--p-space-300); font-size: var(--p-font-size-body-sm); line-height: 1.5;
}
.sorting-connection { background: color-mix(in srgb, var(--p-color-bg-fill-warning) 12%, var(--p-color-bg)); color: var(--p-color-text-warning); }
.sorting-feedback { background: color-mix(in srgb, var(--p-color-bg-fill-critical) 14%, var(--p-color-bg)); color: var(--p-color-text-critical); border: 1px solid color-mix(in srgb, var(--p-color-border-critical) 55%, transparent); font-weight: var(--p-font-weight-semibold); }
.sorting-feedback:empty { display: none; }
/* the connection light (net.js) tucks into the corner, clear of the language menu */
.sorting-body .conn-dot { top: var(--p-space-150); right: var(--p-space-150); width: var(--p-space-200); height: var(--p-space-200); }
.sorting-loading { text-align: center; padding: var(--p-space-1600) 0; }
.sorting-loading > span { display: block; color: var(--p-color-gold); font-size: 4rem; margin-bottom: var(--p-space-500); }
.sorting-loading h1 { font-size: var(--p-font-size-heading-xl); }

/* The entry and the dilemmas carry their own footnotes; the header's language
   menu waits until there is a name beside it. */
.sorting-body[data-view="intro"] .sorting-footer,
.sorting-body[data-view="question"] .sorting-footer,
.sorting-body[data-view="intro"] .sorting-identity,
.sorting-body[data-view="intro"] .sorting-language-compact { display: none; }

/* ---------- Entry: what this is, language, name, start */
.sorting-intro { max-width: 460px; margin: 0 auto; text-align: center; }
.sorting-intro__art {
  position: relative; display: flex; justify-content: center; align-items: center;
  gap: var(--p-space-300); height: 168px; margin-bottom: var(--p-space-500);
}
.sorting-intro__card {
  position: relative; display: block; overflow: hidden; width: 132px; height: 156px;
  border-radius: var(--p-border-radius-400); border: 3px solid var(--p-color-dilema-a);
  background: var(--p-color-bg-surface-secondary); transform: rotate(-7deg); box-shadow: var(--p-shadow-300);
}
.sorting-intro__card:last-child { border-color: var(--p-color-dilema-b); transform: translateY(8px) rotate(7deg); }
.sorting-intro__versus {
  position: absolute; z-index: 1; display: grid; place-items: center;
  width: var(--p-space-dilema-versus); height: var(--p-space-dilema-versus); border-radius: var(--p-border-radius-full);
  background: var(--p-color-bg); border: 2px solid var(--p-color-gold); color: var(--p-color-gold);
  font-family: var(--p-font-family-display); font-size: var(--p-font-size-body-sm); box-shadow: var(--p-shadow-300);
}
.sorting-intro h1 { font-size: clamp(1.9rem, 8.4vw, 3rem); line-height: 1.1; text-wrap: balance; }
.sorting-lead {
  margin: var(--p-space-300) 0 var(--p-space-500); color: var(--p-color-text-secondary);
  line-height: 1.5; font-size: var(--p-font-size-body-lg); text-wrap: balance;
}
.sorting-register { display: flex; flex-direction: column; gap: var(--p-space-300); text-align: left; }
.sorting-language-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--p-space-200); }
.sorting-language-pill {
  min-height: 44px; padding: 0 var(--p-space-200); border-radius: var(--p-border-radius-full);
  border: 1px solid var(--p-color-border); background: var(--p-color-bg-surface);
  color: var(--p-color-text-secondary); font-size: var(--p-font-size-body-sm); font-weight: var(--p-font-weight-semibold);
}
.sorting-language-pill[aria-pressed="true"] {
  border: 2px solid var(--p-color-text); background: var(--p-color-bg-surface-active); color: var(--p-color-text);
}
.sorting-language-pill[aria-pressed="true"]::before { content: '✓ '; }
.sorting-language-pill:disabled { opacity: 0.6; }
.sorting-register__name { display: grid; gap: var(--p-space-200); margin-top: var(--p-space-200); font-weight: var(--p-font-weight-semibold); }
.sorting-register__name .input { min-height: 56px; font-size: 1.15rem; background: var(--p-color-bg-surface); }
.sorting-register__help { margin: calc(var(--p-space-100) * -1) 0 0; color: var(--p-color-text-secondary); font-size: var(--p-font-size-body-sm); }
.sorting-start { width: 100%; min-height: 60px; margin-top: var(--p-space-200); font-family: var(--p-font-family-display); font-weight: 400; font-size: 1.25rem; letter-spacing: 0.03em; }
.sorting-register__privacy { margin: var(--p-space-200) 0 0; color: var(--p-color-text-secondary); font-size: var(--p-font-size-body-xs); line-height: 1.5; text-align: center; }

/* ---------- One dilemma: it fills the screen, the two pictures take what is left */
.sorting-body[data-view="question"] .sorting-app { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.sorting-body[data-view="question"] .sorting-stage {
  flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; padding: var(--p-space-300) 0 0;
}
.dilema-top { display: flex; align-items: center; gap: var(--p-space-300); }
.dilema-steps { flex: 1; display: flex; align-items: center; gap: 3px; height: var(--p-space-300); }
.dilema-steps--dense { gap: var(--p-space-050); }
.dilema-steps__step {
  flex: 1; min-width: 0; height: var(--p-space-150); border-radius: var(--p-border-radius-full);
  background: var(--p-color-bg-surface-active);
  transition: background var(--p-motion-duration-200), height var(--p-motion-duration-200);
}
.dilema-steps__step.is-done { background: var(--p-color-bg-fill-brand-hover); }
/* an omitted one is hollow, not just another color */
.dilema-steps__step.is-skipped { background: transparent; box-shadow: inset 0 0 0 1.5px var(--p-color-text-secondary); }
.dilema-steps__step.is-current { height: var(--p-space-300); }
.dilema-steps__step.is-current:not(.is-done):not(.is-skipped) { background: var(--p-color-text); }
.dilema-position {
  min-width: 2.6em; text-align: right; font-size: var(--p-font-size-body-xs); font-weight: var(--p-font-weight-bold);
  font-variant-numeric: tabular-nums; color: var(--p-color-text-secondary);
}
/* two lines of room, always: the pictures sit in the same place from one dilemma to the next */
.dilema-title {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--p-space-100);
  min-height: 5.4rem; padding: var(--p-space-200) 0; text-align: center;
}
.dilema-title:focus-visible { outline: none; }
.dilema-title__topic {
  font-size: var(--p-font-size-body-xs); font-weight: var(--p-font-weight-bold); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--p-color-text-warning);
}
.dilema-title__ask {
  font-family: var(--p-font-family-display); font-weight: 400; font-size: clamp(1.3rem, min(6.3vw, 6.4vh), 2.4rem);
  line-height: 1.1; letter-spacing: 0.01em; text-transform: uppercase; text-wrap: balance;
}

.dilema-cards {
  position: relative; flex: 1 1 auto; display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--p-space-300); min-height: 320px;
}
.dilema-card {
  --p-color-dilema-tone: var(--p-color-dilema-a);
  position: relative; display: block; width: 100%; min-width: 0; min-height: 0; padding: 0; overflow: hidden; isolation: isolate;
  container-type: size;   /* its size comes from the grid, never from what is inside: the picture can ask how wide it is */
  border-radius: var(--p-border-radius-dilema-card); color: var(--p-color-text); text-align: left;
  background: linear-gradient(140deg, color-mix(in srgb, var(--p-color-dilema-tone) 38%, var(--p-color-bg-surface)), var(--p-color-bg-surface-secondary));
  box-shadow: var(--p-shadow-300); -webkit-tap-highlight-color: transparent;
  transition: transform var(--p-motion-duration-200) var(--p-motion-ease-bounce),
              opacity var(--p-motion-duration-200), filter var(--p-motion-duration-200);
  animation: dilema-card-in var(--p-motion-dilema-in) var(--p-motion-ease) backwards;
}
.dilema-card--b { --p-color-dilema-tone: var(--p-color-dilema-b); --p-space-dilema-slide: 18px; animation-delay: 60ms; }
.dilema-card--product { background: var(--p-color-dilema-product); }
.dilema-card:focus-visible { outline: 3px solid var(--p-color-border-focus); outline-offset: 3px; border-radius: var(--p-border-radius-dilema-card); }
.dilema-card:active:not([aria-disabled="true"]) { transform: scale(0.985); }
.dilema-card[aria-disabled="true"] { cursor: default; }
.dilema-image {
  position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--p-space-dilema-image-position-mobile, 50% 35%);
  user-select: none; -webkit-user-drag: none;
}
.dilema-image[hidden] { display: none; }
/* a card much wider than tall shows the wide crop's focal point; a squarer one, the square crop's */
@container (min-aspect-ratio: 8 / 5) {
  .dilema-image { object-position: var(--p-space-dilema-image-position, 50% 35%); }
}
/* the scrim that keeps the name readable on any picture, and the frame */
.dilema-card::before {
  content: ''; position: absolute; inset: 35% 0 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, var(--p-color-dilema-scrim) 0%, color-mix(in srgb, var(--p-color-dilema-scrim) 55%, transparent) 45%, transparent 100%);
}
.dilema-card::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  border: 2px solid color-mix(in srgb, var(--p-color-text) 18%, transparent);
  border-bottom: 5px solid var(--p-color-dilema-tone);
  transition: border-color var(--p-motion-duration-150), border-width var(--p-motion-duration-150);
}
.dilema-card__name {
  position: absolute; z-index: 2; left: var(--p-space-400); right: var(--p-space-400); bottom: var(--p-space-400);
  font-family: var(--p-font-family-display); font-weight: 400; font-size: clamp(1.45rem, min(7.6vw, 7vh), 2.5rem);
  line-height: 1.05; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere;
  text-shadow: var(--p-shadow-dilema-text);
}
.dilema-card__mark {
  position: absolute; z-index: 2; top: var(--p-space-300); right: var(--p-space-300); max-width: calc(100% - var(--p-space-600));
  padding: var(--p-space-150) var(--p-space-300); border-radius: var(--p-border-radius-full);
  background: var(--p-color-dilema-tone); color: var(--p-color-text-inverse);
  font-size: var(--p-font-size-body-sm); font-weight: var(--p-font-weight-bold); line-height: 1.3;
  box-shadow: var(--p-shadow-200); animation: dilema-pop var(--p-motion-duration-300) var(--p-motion-ease-bounce) both;
}
.dilema-card__mark:empty { display: none; }

/* chosen: a thick frame in the option's color and a ✓ with words — never the color alone */
.dilema-card[aria-pressed="true"]::after { border: 5px solid var(--p-color-dilema-tone); }
.dilema-card[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--p-color-bg), 0 0 34px color-mix(in srgb, var(--p-color-dilema-tone) 55%, transparent); }
.dilema-card.is-other { filter: saturate(0.55) brightness(0.8); }
.dilema-cards.is-settling .dilema-card[aria-pressed="true"] { transform: scale(1.015); }
.dilema-cards.is-settling .dilema-card.is-other { opacity: 0.45; transform: scale(0.97); }
/* the answer is on its way: its label only shows up if the server takes a while */
.dilema-card.is-pending .dilema-card__mark { animation: dilema-late var(--p-motion-duration-200) 450ms both; }
/* the save did not go through */
.dilema-card.is-failed::after { border: 5px solid var(--p-color-border-critical); }
.dilema-card.is-failed .dilema-card__mark { background: var(--p-color-bg-fill-critical); color: var(--p-color-text-brand-on-bg-fill); }
/* (the entrance stays in the list so that it does not play again when the shake goes) */
.dilema-card.is-failed { animation: dilema-card-in var(--p-motion-dilema-in) var(--p-motion-ease) backwards, dilema-shake 360ms var(--p-motion-ease); }
.dilema-cards.is-offline .dilema-card { opacity: 0.55; }

.dilema-versus {
  position: absolute; z-index: 4; top: 50%; left: 50%; display: grid; place-items: center; pointer-events: none;
  width: var(--p-space-dilema-versus); height: var(--p-space-dilema-versus); margin: calc(var(--p-space-dilema-versus) / -2) 0 0 calc(var(--p-space-dilema-versus) / -2);
  border-radius: var(--p-border-radius-full); background: var(--p-color-bg); border: 2px solid var(--p-color-gold);
  color: var(--p-color-gold); font-family: var(--p-font-family-display); font-size: var(--p-font-size-body-sm);
  box-shadow: var(--p-shadow-300); transition: opacity var(--p-motion-duration-200);
}
.dilema-cards.is-settling .dilema-versus { opacity: 0; }

/* small and out of the way: back, skip, and forward over an answered one */
.dilema-nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--p-space-200);
  padding: var(--p-space-200) 0 calc(var(--p-space-200) + env(safe-area-inset-bottom));
}
.dilema-nav__button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--p-space-150);
  min-height: 44px; min-width: 44px; padding: 0 var(--p-space-300); border-radius: var(--p-border-radius-full);
  color: var(--p-color-text-secondary); font-size: var(--p-font-size-body-sm); font-weight: var(--p-font-weight-semibold);
}
.dilema-nav__button:disabled { opacity: 0.35; cursor: default; }
.dilema-nav__button--previous { grid-column: 1; justify-self: start; margin-left: calc(var(--p-space-300) * -1); }
.dilema-nav__button--skip { grid-column: 2; padding: 0 var(--p-space-500); border: 1px solid var(--p-color-border); }
.dilema-nav__button--skip[aria-pressed="true"] { border-color: var(--p-color-text); color: var(--p-color-text); }
.dilema-nav__button--next { grid-column: 3; justify-self: end; margin-right: calc(var(--p-space-300) * -1); color: var(--p-color-text); }
@media (hover: hover) {
  .dilema-nav__button:hover:enabled { background: var(--p-color-bg-surface-hover); color: var(--p-color-text); }
  .dilema-card:hover:not([aria-disabled="true"]) { transform: translateY(-2px); }
  .sorting-language-pill:hover:enabled { background: var(--p-color-bg-surface-hover); color: var(--p-color-text); }
}

@keyframes dilema-card-in { from { opacity: 0; transform: translateX(var(--p-space-dilema-slide, -18px)) scale(0.98); } }
@keyframes dilema-pop { from { opacity: 0; transform: scale(0.6); } }
@keyframes dilema-late { from { opacity: 0; } }
@keyframes dilema-shake {
  20% { transform: translateX(-7px); } 40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); } 80% { transform: translateX(3px); }
}

/* ---------- The end of the walk, and the list of answers behind it */
.sorting-finish .sorting-result__icon { animation: dilema-pop var(--p-motion-duration-300) var(--p-motion-ease-bounce) both; }
.sorting-finish h1 { font-size: clamp(2.2rem, 11vw, 3.6rem); }
.sorting-finish .sorting-finish__summary { font-weight: var(--p-font-weight-bold); color: var(--p-color-text); }
.sorting-finish__submit { min-height: 64px; margin-top: var(--p-space-300); font-size: 1.15rem; }
.sorting-review__heading { display: flex; flex-direction: column; gap: var(--p-space-300); margin-bottom: var(--p-space-600); }
.sorting-review__heading h1 { font-size: var(--p-font-size-heading-2xl); }
.sorting-review__heading p { margin: 0; line-height: 1.5; }
.sorting-review__list { display: flex; flex-direction: column; gap: var(--p-space-200); }
.sorting-review-row {
  display: grid; grid-template-columns: 2rem 1fr auto; gap: var(--p-space-300); align-items: center;
  border: 1px solid var(--p-color-border-secondary); border-radius: var(--p-border-radius-300);
  padding: var(--p-space-300); background: var(--p-color-bg-surface);
}
.sorting-review-row__number { color: var(--p-color-text-secondary); font-size: var(--p-font-size-body-xs); }
.sorting-review-row__copy { min-width: 0; }
.sorting-review-row__question { display: block; font-size: var(--p-font-size-body-xs); color: var(--p-color-text-secondary); line-height: 1.4; }
.sorting-review-row__answer { display: block; font-size: var(--p-font-size-body-md); font-weight: var(--p-font-weight-bold); margin-top: var(--p-space-050); }
.sorting-submit {
  position: sticky; bottom: 0; z-index: 3; display: flex; flex-direction: column; gap: var(--p-space-300);
  margin: var(--p-space-400) calc(var(--p-space-dilema-gutter) * -1) 0;
  padding: var(--p-space-500) var(--p-space-dilema-gutter) calc(var(--p-space-400) + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--p-color-bg) 82%, transparent);
}
.sorting-submit p { margin: 0; color: var(--p-color-text-secondary); font-size: var(--p-font-size-body-sm); line-height: 1.5; }

/* ---------- Waiting, the assigned team, closed */
.sorting-result { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--p-space-400); max-width: 640px; margin: var(--p-space-800) auto; }
.sorting-result__icon { font-size: 4rem; line-height: 1.1; }
.sorting-result h1 { font-size: var(--p-font-size-heading-2xl); line-height: 1.2; }
.sorting-result p { margin: 0; line-height: 1.6; color: var(--p-color-text-secondary); }
.sorting-result .btn { width: 100%; max-width: 420px; }
.sorting-result__details { border: 1px solid var(--p-color-border); border-radius: var(--p-border-radius-300); background: var(--p-color-bg-surface); padding: var(--p-space-500); width: 100%; }
.sorting-assigned-name { font-family: var(--p-font-family-display); font-size: clamp(1.8rem, 7vw, 3rem); overflow-wrap: anywhere; color: var(--p-color-text); }
/* who this person is most and least alike, once the teams are out */
.sorting-matches { width: 100%; display: grid; gap: var(--p-space-200); text-align: left; border: 1px solid var(--p-color-border); border-radius: var(--p-border-radius-300); background: var(--p-color-bg-surface); padding: var(--p-space-500); }
.sorting-matches[hidden] { display: none; }
.sorting-matches p { font-size: var(--p-font-size-body-sm); }
.sorting-match { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 3.2em; align-items: center; gap: var(--p-space-300); }
.sorting-match__name { font-weight: var(--p-font-weight-semibold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sorting-match__bar { height: var(--p-space-200); border-radius: var(--p-border-radius-full); background: var(--p-color-bg-surface-secondary); overflow: hidden; }
.sorting-match__bar span { display: block; height: 100%; border-radius: inherit; background: var(--p-color-text-success); }
.sorting-match--least .sorting-match__bar span { background: var(--p-color-text-critical); }
.sorting-match__pct { text-align: right; font-variant-numeric: tabular-nums; }
.sorting-matches__note { font-size: var(--p-font-size-body-xs); }

/* ---------- A screen wider than tall (a desktop, a phone on its side): the two pictures side by side */
@media (orientation: landscape) and (min-width: 520px) {
  .dilema-cards {
    grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--p-space-400); min-height: 240px; max-height: 640px;
  }
  .dilema-title { min-height: 6.4rem; }
}
/* …and with very little height, everything around them shrinks */
@media (orientation: landscape) and (max-height: 520px) {
  .sorting-header { min-height: 48px; }
  .dilema-title { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: var(--p-space-300); padding: var(--p-space-100) 0 var(--p-space-200); }
  .dilema-cards { min-height: 150px; }
}

@media (max-width: 560px) {
  .sorting-body { --p-space-dilema-gutter: var(--p-space-400); }
  .sorting-header { min-height: 56px; }
  .sorting-brand { font-size: var(--p-font-size-body-sm); }
  /* with a name beside it, the brand is its emblem */
  .sorting-body:not([data-view="intro"]):not([data-view="loading"]):not([data-view="closed"]) .sorting-brand span { display: none; }
  .sorting-stage { padding-top: var(--p-space-400); }
  .sorting-intro__art { height: 140px; margin-bottom: var(--p-space-400); }
  .sorting-intro__card { width: 112px; height: 132px; }
  .sorting-review-row { grid-template-columns: 1.2rem 1fr auto; gap: var(--p-space-200); padding: var(--p-space-200) var(--p-space-300); }
  .sorting-review-row .btn { padding: var(--p-space-200); font-size: var(--p-font-size-body-xs); }
}

@media (prefers-reduced-motion: reduce) {
  .dilema-card, .dilema-card.is-failed, .dilema-card__mark, .sorting-finish .sorting-result__icon { animation: none; }
  .dilema-card.is-pending .dilema-card__mark { animation: dilema-late 0.001s 450ms both; }
  .dilema-cards.is-settling .dilema-card, .dilema-card:active, .dilema-card:hover { transform: none !important; }
}
