/*
 * WoW Forever character picker (/wow-forever-character-picker).
 * Everything is scoped to html.wfp and .wfp-* classes.
 *
 * Layout: one quest-log column; each tier list reads like a loot table, its rows coloured by item quality.
 * Fonts: Cinzel and Alegreya Sans, both under the SIL Open Font License, served from this folder.
 */

@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("cinzel-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("alegreya-sans-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("alegreya-sans-500-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("alegreya-sans-700-latin.woff2") format("woff2");
}

html.wfp {
  /* Light: cool stone, ink, and a dark gold that holds contrast on white */
  --wfp-bg: #eef0f4;
  --wfp-surface: #ffffff;
  --wfp-raised: #f5f6f9;
  --wfp-line: #cdd3de;
  --wfp-ink: #1a1d26;
  --wfp-muted: #535a6b;
  --wfp-gold: #85600c;
  --wfp-gold-ink: #ffffff;
  --wfp-focus: #2457c5;
  --wfp-shadow: 0 1px 2px rgb(26 29 38 / 0.08), 0 4px 14px rgb(26 29 38 / 0.06);

  /* Item quality, used for tiers */
  --wfp-q-s: #ff8000;
  --wfp-q-s-ink: #1f0f00;
  --wfp-q-a: #a335ee;
  --wfp-q-a-ink: #ffffff;
  --wfp-q-b: #0070dd;
  --wfp-q-b-ink: #ffffff;
  --wfp-q-c: #1eff00;
  --wfp-q-c-ink: #062400;
  --wfp-q-d: #dfe3ea;
  --wfp-q-d-ink: #1a1d26;
  --wfp-q-f: #9d9d9d;
  --wfp-q-f-ink: #111111;
  --wfp-q-n: #5a1e24;
  --wfp-q-n-ink: #ffe9e9;

  --wfp-display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --wfp-body: "Alegreya Sans", "Gill Sans", "Segoe UI", system-ui, sans-serif;

  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-color-scheme: dark) {
  html.wfp:not([data-theme="light"]) {
    --wfp-bg: #101218;
    --wfp-surface: #181b24;
    --wfp-raised: #1f2330;
    --wfp-line: #303647;
    --wfp-ink: #ebe7dc;
    --wfp-muted: #a8acba;
    --wfp-gold: #e2bd62;
    --wfp-gold-ink: #1a1408;
    --wfp-focus: #8fb4ff;
    --wfp-shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 6px 18px rgb(0 0 0 / 0.3);
    --wfp-q-d: #f2f2f2;
    --wfp-q-n: #6b232b;
    color-scheme: dark;
  }
}

html.wfp[data-theme="dark"] {
  --wfp-bg: #101218;
  --wfp-surface: #181b24;
  --wfp-raised: #1f2330;
  --wfp-line: #303647;
  --wfp-ink: #ebe7dc;
  --wfp-muted: #a8acba;
  --wfp-gold: #e2bd62;
  --wfp-gold-ink: #1a1408;
  --wfp-focus: #8fb4ff;
  --wfp-shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 6px 18px rgb(0 0 0 / 0.3);
  --wfp-q-d: #f2f2f2;
  --wfp-q-n: #6b232b;
  color-scheme: dark;
}

/* Class colours, as WoW shows them */
.wfp [data-class="Warrior"] { --wfp-class: #c69b6d; }
.wfp [data-class="Paladin"] { --wfp-class: #f48cba; }
.wfp [data-class="Hunter"] { --wfp-class: #aad372; }
.wfp [data-class="Rogue"] { --wfp-class: #fff468; }
.wfp [data-class="Priest"] { --wfp-class: #ffffff; }
.wfp [data-class="Shaman"] { --wfp-class: #0070dd; }
.wfp [data-class="Mage"] { --wfp-class: #3fc7eb; }
.wfp [data-class="Warlock"] { --wfp-class: #8788ee; }
.wfp [data-class="Druid"] { --wfp-class: #ff7c0a; }

.wfp-body {
  margin: 0;
  background: var(--wfp-bg);
  color: var(--wfp-ink);
  font-family: var(--wfp-body);
  font-size: 1.0625rem;
  line-height: 1.5;
}

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

.wfp :focus-visible {
  outline: 3px solid var(--wfp-focus);
  outline-offset: 2px;
}

.wfp [hidden] {
  display: none !important;
}

:where(.wfp) a {
  color: var(--wfp-gold);
}

.wfp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Page frame */

.wfp-header,
.wfp-main,
.wfp-footer {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.wfp-header {
  border-bottom: 1px solid var(--wfp-line);
  background: var(--wfp-surface);
  padding-block: 20px 0;
}

.wfp-header-inner,
.wfp-step,
.wfp-footer > p {
  max-width: 960px;
  margin-inline: auto;
}

.wfp-main {
  padding-block: 28px 48px;
}

.wfp-site {
  font-size: 0.875rem;
  text-decoration: none;
}

.wfp-site:hover {
  text-decoration: underline;
}

.wfp-eyebrow {
  margin: 14px 0 0;
  color: var(--wfp-gold);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wfp-title {
  margin: 2px 0 0;
  font-family: var(--wfp-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.wfp-steps ol {
  display: flex;
  gap: 4px;
  margin: 16px 0 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.wfp-steps a {
  display: block;
  padding: 10px 10px 12px;
  border-bottom: 3px solid transparent;
  color: var(--wfp-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.wfp-steps a:hover {
  color: var(--wfp-ink);
}

.wfp-steps a[aria-current="step"] {
  border-bottom-color: var(--wfp-gold);
  color: var(--wfp-ink);
}

.wfp-footer {
  padding-block: 24px 40px;
  border-top: 1px solid var(--wfp-line);
  color: var(--wfp-muted);
  font-size: 0.8125rem;
}

.wfp-footer > p {
  margin-block: 0;
}

/* Steps */

.wfp-step h1,
.wfp-step h2 {
  text-wrap: balance;
}

.wfp-step h1:focus {
  outline: none;
}

.wfp-step-head {
  display: grid;
  gap: 6px;
  max-width: 68ch;
  margin-bottom: 20px;
}

.wfp-step-head h1 {
  margin: 0;
  font-family: var(--wfp-display);
  font-size: clamp(1.625rem, 4vw, 2.125rem);
  font-weight: 700;
  line-height: 1.15;
}

.wfp-step-head p {
  margin: 0;
}

.wfp-step-count {
  color: var(--wfp-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wfp-start {
  display: grid;
  gap: 20px;
}

.wfp-start > * {
  max-width: 68ch;
}

.wfp-lede {
  margin: 0;
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
}

.wfp-intro {
  margin: 0;
  color: var(--wfp-muted);
  font-size: 1.125rem;
}

.wfp-how {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.4em;
}

.wfp-how li::marker {
  color: var(--wfp-gold);
  font-family: var(--wfp-display);
  font-weight: 700;
}

.wfp-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.wfp-choices legend {
  margin-bottom: 8px;
  padding: 0;
  font-weight: 700;
}

.wfp-choice {
  position: relative;
}

.wfp-choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.wfp-choice span {
  display: block;
  padding: 10px 18px;
  border: 1px solid var(--wfp-line);
  border-radius: 999px;
  background: var(--wfp-surface);
  font-weight: 500;
}

.wfp-choice input:checked + span {
  border-color: var(--wfp-gold);
  background: var(--wfp-gold);
  color: var(--wfp-gold-ink);
}

/* Tick boxes show a tick, so it's clear more than one can be chosen */
.wfp-choice input[type="checkbox"]:checked + span::before {
  content: "\2713";
  margin-right: 6px;
}

.wfp-choice input:focus-visible + span {
  outline: 3px solid var(--wfp-focus);
  outline-offset: 2px;
}

.wfp-start-actions,
.wfp-step-nav,
.wfp-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wfp-step-nav {
  justify-content: space-between;
  margin-top: 28px;
}

.wfp-result-actions {
  margin-top: 32px;
}

.wfp-small {
  margin: 0;
  color: var(--wfp-muted);
  font-size: 0.875rem;
}

/* Buttons and chips */

.wfp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--wfp-line);
  border-radius: 6px;
  background: var(--wfp-surface);
  color: var(--wfp-ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.wfp-button:hover {
  border-color: var(--wfp-gold);
}

.wfp-button-primary {
  border-color: var(--wfp-gold);
  background: var(--wfp-gold);
  color: var(--wfp-gold-ink);
}

.wfp-button-quiet {
  border-color: transparent;
  background: transparent;
  color: var(--wfp-muted);
}

.wfp-chip {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--wfp-line);
  border-radius: 999px;
  background: var(--wfp-surface);
  color: var(--wfp-ink);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.wfp-chip[aria-pressed="true"] {
  border-color: var(--wfp-gold);
  background: var(--wfp-gold);
  color: var(--wfp-gold-ink);
}

/* How you'll play: a tick and a time slider for each part of the game */

.wfp-time {
  display: grid;
  gap: 10px;
  max-width: 68ch;
}

.wfp-aspect {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--wfp-line);
  border-radius: 8px;
  background: var(--wfp-surface);
}

.wfp-aspect-on {
  border-color: var(--wfp-gold);
}

.wfp-aspect-pick {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
}

.wfp-aspect-pick input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--wfp-gold);
  cursor: pointer;
}

.wfp-aspect-pick label {
  font-weight: 700;
  cursor: pointer;
}

.wfp-aspect-detail {
  color: var(--wfp-muted);
  font-size: 0.875rem;
}

.wfp-aspect-pick .wfp-aspect-detail {
  grid-column: 2;
}

.wfp-factor-name {
  display: grid;
  gap: 2px;
}

.wfp-factor-name label {
  font-weight: 700;
}

.wfp-aspect-share {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.wfp-aspect-share input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  accent-color: var(--wfp-gold);
}

.wfp-aspect-share output {
  min-width: 4.5ch;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: right;
}

/* Wide enough for "Not at all", so every track is the same length whatever its level says */
.wfp-aspect-share .wfp-weight-level {
  min-width: 5.5em;
  text-align: left;
}

/* Never: chips to rule things out, which turn the Never tier's colour once pressed */

.wfp-exclusions {
  display: grid;
  gap: 24px;
}

.wfp-exclude h2 {
  margin: 0 0 8px;
  font-size: 1.125rem;
}

.wfp-exclude .wfp-small {
  margin-bottom: 10px;
}

.wfp-exclude-classes {
  display: grid;
  gap: 8px;
}

.wfp-exclude-class {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-left: 10px;
  border-left: 4px solid var(--wfp-class, var(--wfp-line));
}

.wfp-chip-class {
  font-weight: 700;
}

.wfp-chip-never[aria-pressed="true"] {
  border-color: var(--wfp-q-n);
  background: var(--wfp-q-n);
  color: var(--wfp-q-n-ink);
  text-decoration: line-through;
}

.wfp-chip-never[aria-pressed="mixed"] {
  border-color: var(--wfp-q-n);
  border-style: dashed;
}

/* Preferred role, above each part of the game's board */

.wfp-role {
  margin-bottom: 6px;
}

.wfp-role-help {
  margin-bottom: 16px;
}

/* Tier boards */

.wfp-board-help {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 10px;
  color: var(--wfp-muted);
  font-size: 0.875rem;
}

.wfp-board-help p {
  margin: 0;
}

.wfp-remaining {
  font-weight: 700;
}

.wfp-board {
  display: grid;
  gap: 4px;
  overflow: hidden;
  border: 1px solid var(--wfp-line);
  border-radius: 8px;
  background: var(--wfp-line);
  box-shadow: var(--wfp-shadow);
}

.wfp-pool,
.wfp-tier {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  background: var(--wfp-surface);
}

.wfp-pool {
  grid-template-columns: minmax(0, 1fr);
  background: var(--wfp-raised);
}

.wfp-pool-label {
  justify-self: start;
  margin: 10px 10px 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--wfp-muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.wfp-count {
  display: inline-block;
  min-width: 1.6em;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--wfp-surface);
  color: var(--wfp-ink);
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.wfp-tier-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 64px;
  padding: 6px 4px;
  border: 0;
  background: var(--wfp-tier);
  color: var(--wfp-tier-ink);
  font: inherit;
  cursor: pointer;
}

.wfp-tier[data-tier="S"], .wfp-tier-chip[data-tier="S"] { --wfp-tier: var(--wfp-q-s); --wfp-tier-ink: var(--wfp-q-s-ink); }
.wfp-tier[data-tier="A"], .wfp-tier-chip[data-tier="A"] { --wfp-tier: var(--wfp-q-a); --wfp-tier-ink: var(--wfp-q-a-ink); }
.wfp-tier[data-tier="B"], .wfp-tier-chip[data-tier="B"] { --wfp-tier: var(--wfp-q-b); --wfp-tier-ink: var(--wfp-q-b-ink); }
.wfp-tier[data-tier="C"], .wfp-tier-chip[data-tier="C"] { --wfp-tier: var(--wfp-q-c); --wfp-tier-ink: var(--wfp-q-c-ink); }
.wfp-tier[data-tier="D"], .wfp-tier-chip[data-tier="D"] { --wfp-tier: var(--wfp-q-d); --wfp-tier-ink: var(--wfp-q-d-ink); }
.wfp-tier[data-tier="F"], .wfp-tier-chip[data-tier="F"] { --wfp-tier: var(--wfp-q-f); --wfp-tier-ink: var(--wfp-q-f-ink); }
.wfp-tier[data-tier="N"], .wfp-tier-chip[data-tier="N"] { --wfp-tier: var(--wfp-q-n); --wfp-tier-ink: var(--wfp-q-n-ink); }

.wfp-tier[data-tier="N"] {
  margin-top: 6px;
}

.wfp-tier-letter {
  font-family: var(--wfp-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.wfp-tier-name {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wfp-board-placing .wfp-tier-label,
.wfp-board-placing .wfp-pool-label {
  box-shadow: inset 0 0 0 3px var(--wfp-gold);
}

.wfp-board-placing .wfp-pool-label {
  padding: 2px 6px;
  border-radius: 4px;
}

.wfp-tiles {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  min-height: 64px;
  padding: 10px;
}

.wfp-pool .wfp-tiles {
  min-height: 56px;
}

.wfp-pool .wfp-tiles:empty::before {
  content: "Everything's placed. Drag a tile back here to take it out.";
  align-self: center;
  color: var(--wfp-muted);
  font-size: 0.875rem;
}

.wfp-tile {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  max-width: 100%;
  min-height: 44px;
  padding: 6px 12px 6px 16px;
  border: 1px solid var(--wfp-line);
  border-radius: 6px;
  background: var(--wfp-surface);
  color: var(--wfp-ink);
  font: inherit;
  text-align: left;
  cursor: grab;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

/* The class colour as a gem down the left edge, outlined so white Priest still shows on white */
.wfp-tile::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 6px;
  width: 4px;
  border-radius: 2px;
  background: var(--wfp-class, var(--wfp-line));
  box-shadow: 0 0 0 1px var(--wfp-line);
}

.wfp-tile:not([data-class]) {
  padding-left: 12px;
}

.wfp-tile:not([data-class])::before {
  display: none;
}

.wfp-tile:hover {
  border-color: var(--wfp-gold);
}

.wfp-tile[aria-pressed="true"] {
  border-color: var(--wfp-gold);
  box-shadow: 0 0 0 2px var(--wfp-gold);
}

.wfp-tile-label {
  font-weight: 700;
  line-height: 1.2;
}

.wfp-tile-sub {
  color: var(--wfp-muted);
  font-size: 0.8125rem;
  line-height: 1.2;
}

.wfp-tile-ghost {
  opacity: 0.35;
}

.wfp-tile-drag {
  box-shadow: var(--wfp-shadow);
  cursor: grabbing;
}

.wfp-splits {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: var(--wfp-muted);
  font-size: 0.9375rem;
}

.wfp-splits p {
  margin: 0;
}

.wfp-split-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Been there */

.wfp-history {
  display: grid;
  gap: 16px;
  max-width: 68ch;
}

.wfp-history-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--wfp-line);
  border-radius: 8px;
  background: var(--wfp-surface);
}

.wfp-field {
  display: grid;
  flex: 1 1 140px;
  gap: 4px;
}

.wfp-field label {
  font-size: 0.875rem;
  font-weight: 700;
}

.wfp-field select {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--wfp-line);
  border-radius: 6px;
  background: var(--wfp-raised);
  color: var(--wfp-ink);
  font: inherit;
}

.wfp-mains {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wfp-main-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 4px 4px 12px;
  border: 1px solid var(--wfp-line);
  border-left: 4px solid var(--wfp-class, var(--wfp-line));
  border-radius: 6px;
  background: var(--wfp-surface);
  font-weight: 500;
}

.wfp-remove {
  min-height: 36px;
  padding: 4px 10px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--wfp-muted);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.wfp-remove:hover {
  color: var(--wfp-ink);
  text-decoration: underline;
}

.wfp-empty {
  margin: 0;
  color: var(--wfp-muted);
}

/* Results */

.wfp-reading {
  max-width: 68ch;
  margin-bottom: 32px;
}

.wfp-reading .wfp-eyebrow {
  margin-top: 0;
}

.wfp-headline {
  margin: 4px 0 10px;
  font-family: var(--wfp-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

.wfp-reading-lines {
  display: grid;
  gap: 4px;
  margin: 0 0 10px;
  padding-left: 1.2em;
}

.wfp-reading-footer {
  margin: 0;
  color: var(--wfp-muted);
}

.wfp-ledger {
  display: grid;
  border-top: 1px solid var(--wfp-line);
}

.wfp-pick {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding-block: 20px;
  border-bottom: 1px solid var(--wfp-line);
}

@media (min-width: 760px) {
  .wfp-pick {
    grid-template-columns: 220px minmax(0, 1fr);
    column-gap: 28px;
  }

  .wfp-pick > :not(.wfp-pick-head) {
    grid-column: 2;
  }

  .wfp-pick-head {
    grid-row: 1 / span 8;
  }
}

.wfp-pick-head h2 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
}

.wfp-pick-head p {
  margin: 2px 0 0;
  color: var(--wfp-muted);
  font-size: 0.875rem;
}

.wfp-pick-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  font-family: var(--wfp-display);
  font-size: clamp(1.375rem, 3.6vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
}

.wfp-pick-name::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  transform: rotate(45deg);
  background: var(--wfp-class, var(--wfp-gold));
  box-shadow: 0 0 0 1px var(--wfp-line);
}

.wfp-badge {
  padding: 2px 8px;
  border: 1px solid var(--wfp-gold);
  border-radius: 999px;
  color: var(--wfp-gold);
  font-family: var(--wfp-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wfp-pick-plan,
.wfp-fresh,
.wfp-versus {
  margin: 0;
}

.wfp-pick-plan {
  color: var(--wfp-muted);
}

.wfp-why {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
  padding: 0;
  list-style: none;
}

.wfp-why li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px 3px 3px;
  border: 1px solid var(--wfp-line);
  border-radius: 6px;
  background: var(--wfp-surface);
  font-size: 0.9375rem;
}

.wfp-why-list {
  color: var(--wfp-muted);
  font-size: 0.8125rem;
}

.wfp-tier-chip {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: var(--wfp-tier);
  color: var(--wfp-tier-ink);
  font-family: var(--wfp-display);
  font-weight: 700;
}

.wfp-flip {
  margin: 4px 0 0;
  color: var(--wfp-muted);
  font-size: 0.9375rem;
}

.wfp-flip p,
.wfp-flip ul {
  margin: 0;
}

.wfp-flip ul {
  padding-left: 1.2em;
}

.wfp-flip strong {
  color: var(--wfp-ink);
}

.wfp-aspect-results {
  max-width: 68ch;
  margin-block: 28px 32px;
}

.wfp-aspect-results h2 {
  margin: 0 0 10px;
  font-family: var(--wfp-display);
  font-size: 1.375rem;
}

.wfp-aspect-picks {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--wfp-line);
  list-style: none;
}

.wfp-aspect-picks li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding-block: 10px;
  border-bottom: 1px solid var(--wfp-line);
}

.wfp-aspect-name {
  font-weight: 700;
}

.wfp-aspect-name span,
.wfp-aspect-winner span {
  margin-left: 6px;
  color: var(--wfp-muted);
  font-size: 0.875rem;
  font-weight: 400;
}

.wfp-aspect-winner {
  padding-left: 10px;
  border-left: 4px solid var(--wfp-class, var(--wfp-line));
  font-weight: 500;
}

@media (max-width: 480px) {
  .wfp-pool,
  .wfp-tier {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .wfp-pool {
    grid-template-columns: minmax(0, 1fr);
  }

  .wfp-tier-letter {
    font-size: 1.5rem;
  }

  .wfp-tier-name {
    font-size: 0.625rem;
    letter-spacing: 0.02em;
  }

  .wfp-tiles {
    gap: 5px;
    padding: 8px;
  }

  .wfp-tile {
    padding: 5px 10px 5px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wfp *,
  .wfp *::before,
  .wfp *::after {
    transition: none !important;
    animation: none !important;
  }
}
