/* Plan a commission: the planner (tiles on a Bayberry bench, a manila job ticket hanging on a nail),
   what happens next, and arrival-to-finished cards. Builds on main.css tokens. */

/* ---------- hero ---------- */
.pl-hero__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 10px; }
.pl-hero__acts p { margin: 0; color: var(--cream-2); font-size: 1.05rem; }
.pl-hero__acts p a { color: var(--cream); font-weight: 700; text-decoration-color: var(--brass); text-underline-offset: 4px; white-space: nowrap; }
.pl-hero .phero__media::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(23, 32, 26, .4), transparent 26%); }

/* ---------- the planner section: painted Bayberry, like the Priory dresser ---------- */
.pl-tool { background: var(--bayberry); color: var(--cream); padding-block: clamp(44px, 6.5vh, 84px); overflow: clip; }
.pl-tool::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: soft-light;
  background: url('../img/grain-texture.webp') center / cover no-repeat;
}
.pl-tool .wrap { position: relative; }
.pl-tool__head { margin-bottom: clamp(18px, 3vh, 34px); }
.pl-tool__head h2 em { color: var(--brass-lt); }
.pl-tool__head p { color: var(--cream-2); }
.pl-tool__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 370px); gap: clamp(28px, 4vw, 72px); align-items: start; }
.pl-tool__main { min-width: 0; }

/* progress */
.pl-prog { position: relative; display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; margin-bottom: clamp(12px, 2vh, 22px); }
.pl-prog__txt { margin: 0; font-family: var(--serif); font-size: 1.15rem; color: var(--brass-lt); min-width: 6.4em; }
.pl-prog__dots { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 3vw, 46px); }
.pl-prog__dots li { display: flex; align-items: center; gap: 9px; color: rgba(248, 240, 227, .6); font-size: 1rem; font-weight: 500; transition: color .4s var(--ease); }
.pl-prog__dot {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid rgba(248, 240, 227, .4); background: var(--bayberry); font-family: var(--serif); font-size: .95rem;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.pl-prog__dots li.is-on, .pl-prog__dots li.is-done { color: var(--cream); }
.pl-prog__dots li.is-on .pl-prog__dot { border-color: var(--brass); color: var(--brass-lt); box-shadow: 0 0 0 4px rgba(194, 154, 82, .18); }
.pl-prog__dots li.is-done .pl-prog__dot { background: var(--brass); border-color: var(--brass); color: var(--night); }
.pl-prog__line { position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: rgba(248, 240, 227, .14); }
.pl-prog__line span { position: absolute; inset: 0; background: var(--brass); transform-origin: left; transform: scaleX(.25); transition: transform .7s var(--ease); }

/* steps: stacked in one grid cell so the stage keeps its height as steps change */
.pl-steps { display: grid; }
.pl-step { grid-area: 1 / 1; min-width: 0; margin: 0; padding: 16px 0 0; border: 0; }
.pl-step legend { padding: 0; float: left; width: 100%; }
.pl-step legend + * { clear: both; }
.pl-q { margin: 0 0 4px; font-size: clamp(1.45rem, 2vw, 2rem); color: var(--cream); outline: none; }
.pl-q:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.pl-hint { margin: 0 0 14px; color: var(--cream-2); font-size: 1.05rem; }
.pl-note { margin: 14px 0 0; color: var(--cream-2); font-size: 1.02rem; line-height: 1.5; }
.pl-err { margin: 14px 0 0; padding: 10px 14px; border-left: 3px solid var(--brass); background: rgba(23, 32, 26, .45); color: var(--cream); font-weight: 700; font-size: 1.05rem; }
.pl-err[hidden] { display: none; }

/* stepper live (JS on): one step at a time */
.pl-form:not(.is-live) .pl-prog, .pl-form:not(.is-live) .pl-nav { display: none; }
.pl-form:not(.is-live) .pl-steps { display: block; }
.pl-form:not(.is-live) .pl-step { padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid rgba(248, 240, 227, .14); }
.pl-form.is-live .pl-step:not(.is-on) { visibility: hidden; pointer-events: none; }
.pl-form.is-live .pl-send-plain { display: none; }
.pl-send-plain { padding-top: 20px; }
.pl-send-plain p { color: var(--cream-2); }

/* tiles: real inputs laid over the face, so clicks, keyboard and screen readers all work */
.pl-tiles { display: grid; gap: clamp(10px, 1vw, 16px); }
.pl-tiles--piece { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pl-tiles--look { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pl-tiles--work { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pl-tiles--get { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { position: relative; display: block; min-width: 0; cursor: pointer; }
.tile input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; cursor: pointer; -webkit-appearance: none; appearance: none; background: transparent; border: 0; border-radius: 0; outline: none; }
.tile__face {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: clip; border-radius: 3px;
  background: rgba(23, 32, 26, .42); border: 1.5px solid rgba(248, 240, 227, .16); color: var(--cream);
  transition: transform .5s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease), box-shadow .5s var(--ease);
}
.tile:hover .tile__face { transform: translateY(-4px); border-color: var(--brass); box-shadow: 0 16px 30px rgba(15, 22, 17, .35); }
.tile input:focus-visible + .tile__face { outline: 2px solid var(--brass-lt); outline-offset: 3px; }
.tile input:checked + .tile__face { border-color: var(--brass); background: rgba(23, 32, 26, .7); box-shadow: inset 0 0 0 1.5px var(--brass); }
.tile__img { position: relative; display: block; aspect-ratio: 4 / 4.2; overflow: clip; background: var(--night); }
.pl-tiles--look .tile__img { aspect-ratio: 4 / 3; }
.tile__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tile:hover .tile__img img { transform: scale(1.06); }
.tile__name { display: block; padding: 11px 13px 13px; font-family: var(--serif); font-size: 1.08rem; line-height: 1.22; }
.tile__name small { display: block; margin-top: 4px; font-family: var(--sans); font-size: .95rem; line-height: 1.3; color: var(--cream-2); }
.tile__tick {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: var(--brass); color: var(--night); transform: scale(0); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.tile__tick svg { width: 14px; height: 11px; }
.tile input:checked + .tile__face .tile__tick { transform: scale(1); }

/* text tiles (checkbox and plain radio) */
.tile--check .tile__face { flex-direction: row; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; }
.tile--check .tile__name { padding: 0; font-family: var(--sans); font-size: 1.05rem; line-height: 1.3; }
.tile__box {
  width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 3px;
  border: 1.5px solid rgba(248, 240, 227, .55); color: var(--night); transition: background-color .3s, border-color .3s;
}
.tile__box svg { width: 13px; height: 10px; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.tile input:checked + .tile__face .tile__box { background: var(--brass); border-color: var(--brass); }
.tile input:checked + .tile__face .tile__box svg { opacity: 1; transform: none; }
.tile--radio .tile__box { border-radius: 50%; }
.tile--radio .tile__box::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--night); transform: scale(0); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.tile--radio input:checked + .tile__face .tile__box::after { transform: scale(1); }

/* step 4 */
.pl-where { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 16px 24px; align-items: end; margin-top: 12px; }
.pl-field label { display: block; margin-bottom: 8px; font-weight: 700; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-2); }
.pl-field input {
  width: 100%; min-height: 64px; padding: 14px 16px; border: 1.5px solid rgba(248, 240, 227, .3); border-radius: 3px;
  background: rgba(23, 32, 26, .42); color: var(--cream); font: 400 1.2rem/1.2 var(--sans);
  transition: border-color .3s, background-color .3s;
}
.pl-field input:hover { border-color: var(--brass); }
.pl-field input:focus { outline: none; border-color: var(--brass-lt); box-shadow: 0 0 0 3px rgba(217, 184, 119, .35); background: rgba(23, 32, 26, .65); }
.pl-field input[aria-invalid="true"] { border-color: var(--brass-lt); }

/* nav */
.pl-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: clamp(16px, 2.6vh, 28px); }
.pl-back[hidden] { display: inline-flex; visibility: hidden; }
.i-arrow--back { transform: scaleX(-1); }
.pl-back:hover .i-arrow--back { transform: scaleX(-1) translateX(5px); }

/* ---------- the job ticket ---------- */
.pl-tool__side { position: sticky; top: calc(76px + 26px); padding-top: 34px; }
.pl-tool__side::before { /* the nail it hangs from */
  content: ''; position: absolute; left: calc(50% - 7px); top: 0; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--brass-lt), #8a6a33 70%); box-shadow: 0 2px 4px rgba(0, 0, 0, .35); z-index: 3;
}
.tkt { position: relative; transform-origin: 50% -26px; filter: drop-shadow(0 18px 26px rgba(10, 16, 12, .38)); }
.tkt__string { position: absolute; left: calc(50% - .75px); top: -27px; width: 1.5px; height: 46px; background: linear-gradient(#d7c9a8, #b8a57d); z-index: 2; }
.tkt__body {
  position: relative; padding: 46px clamp(20px, 2vw, 30px) 26px; background: var(--paper); color: var(--walnut);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(0, 0, 0, .05));
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%, 0 22px);
  -webkit-mask: radial-gradient(circle 7px at 50% 19px, transparent 97%, #000 100%);
  mask: radial-gradient(circle 7px at 50% 19px, transparent 97%, #000 100%);
}
.tkt__body::before { content: ''; position: absolute; left: calc(50% - 13px); top: 6px; width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(91, 53, 33, .24); }
.tkt__title { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.6rem; line-height: 1.1; text-align: center; }
.tkt__sub { margin: 4px 0 14px; padding-bottom: 12px; text-align: center; font-size: .95rem; color: rgba(91, 53, 33, .85); border-bottom: 1.5px dashed rgba(91, 53, 33, .4); }
.tkt__rows { margin: 0; }
.tkt__row { display: grid; grid-template-columns: 7.4em minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 11px 0; border-bottom: 1px dashed rgba(91, 53, 33, .3); }
.tkt__row:last-child { border-bottom: 0; }
.tkt__row dt { font-weight: 700; font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(91, 53, 33, .85); }
.tkt__row dd { position: relative; margin: 0; min-height: 1.5em; font-family: var(--serif); font-style: italic; font-size: 1.12rem; line-height: 1.35; }
.tkt__val { display: inline-block; padding-right: .15em; }
.tkt__row.is-empty dd::after { /* a soft dotted line waiting to be written on */
  content: ''; position: absolute; left: 0; right: 0; bottom: .25em; border-bottom: 2px dotted rgba(91, 53, 33, .3);
}
.tkt__row--route dd { min-height: 2.1em; }
.tkt__row--route .tkt__val {
  rotate: -3deg; padding: 3px 12px 4px; border: 2px solid rgba(91, 53, 33, .8); border-radius: 3px;
  font-family: var(--sans); font-style: normal; font-weight: 700; font-size: .98rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3;
  box-shadow: inset 0 0 0 1px rgba(91, 53, 33, .25);
}
.tkt__row--route.is-empty .tkt__val { display: none; }
.pl-tool:not(.is-live) .pl-tool__side { display: none; }
.pl-tool:not(.is-live) .pl-tool__grid { grid-template-columns: minmax(0, 1fr); }

/* ---------- the result ---------- */
.pl-result { padding-top: 4px; }
.pl-res__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid rgba(248, 240, 227, .18); }
.pl-res__title { margin: 0; font-size: clamp(1.6rem, 2.2vw, 2.1rem); outline: none; }
.pl-res__title:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.pl-res__route { margin: 0; color: var(--cream-2); font-size: 1.05rem; }
.pl-res__route strong { color: var(--brass-lt); font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin-left: 6px; }
.pl-res__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: clamp(20px, 2.6vw, 40px); align-items: start; }
.pl-res__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; counter-reset: none; }
.pl-res__list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; padding-bottom: 10px; border-bottom: 1px solid rgba(248, 240, 227, .12); }
.pl-res__n { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--brass); color: var(--night); font-family: var(--serif); font-size: .95rem; }
.pl-res__list strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.1rem; line-height: 1.25; }
.pl-res__list span.pl-res__d { display: block; margin-top: 2px; color: var(--cream-2); font-size: 1rem; line-height: 1.4; }
.pl-res__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: clamp(16px, 2.4vh, 26px); }

.pl-match { display: block; text-decoration: none; color: var(--cream); background: rgba(23, 32, 26, .5); border: 1px solid rgba(248, 240, 227, .16); border-radius: 3px; overflow: clip; transition: border-color .35s, transform .5s var(--ease); }
.pl-match:hover { border-color: var(--brass); transform: translateY(-4px); }
.pl-match__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: clip; background: var(--night); }
.pl-match__img > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pl-match:hover .pl-match__img > img { transform: scale(1.05); }
.pl-match__img .tag { position: absolute; top: 26px; right: 14px; --string: 40px; }
.pl-match__img .tag__body { min-width: 0; max-width: 170px; padding: 28px 12px 12px; }
.pl-match__img .tag__title { font-size: .98rem; }
.pl-match__txt { display: block; padding: 14px 16px 16px; }
.pl-match__k { display: block; font-weight: 700; font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-lt); margin-bottom: 4px; }
.pl-match__txt strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.2rem; line-height: 1.2; margin-bottom: 4px; }
.pl-match__txt > span:not([class]) { display: block; color: var(--cream-2); font-size: 1rem; line-height: 1.4; }
.pl-match__go { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--brass-lt); font-weight: 700; font-size: 1rem; }
.pl-match:hover .i-arrow { transform: translateX(5px); }

/* ---------- what happens next ---------- */
.pl-next { background: var(--limewash); overflow: clip; }
.pl-next__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(40px, 6vw, 120px); align-items: center; }
.pl-next__frame { width: calc(min(64vh, 600px) * .75); max-width: 100%; }
.pl-next__frame::before { border-color: var(--walnut); opacity: .45; }
.pl-next__frame .frame__img { position: relative; aspect-ratio: 3 / 4; }
.pl-next__frame .frame__img img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; }
.pl-next__copy h2 em { color: var(--walnut); }
.pl-next__list { position: relative; margin: clamp(18px, 3vh, 30px) 0; }
.pl-next__steps { list-style: none; margin: 0; padding: 0; }
.pl-next__rail { position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: rgba(91, 53, 33, .18); }
.pl-next__rail span { position: absolute; inset: 0; background: var(--walnut); transform-origin: top; }
.pl-next__steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 22px; padding: clamp(10px, 1.8vh, 18px) 0; }
.pl-next__n {
  position: relative; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid var(--walnut); background: var(--walnut); color: var(--cream); font-family: var(--serif); font-size: 1.2rem;
  transition: background-color .45s var(--ease), color .45s var(--ease);
}
.pl-next__steps h3 { margin: 6px 0 4px; font-size: clamp(1.3rem, 1.6vw, 1.65rem); }
.pl-next__steps p { margin: 0; color: var(--ink-2); font-size: 1.08rem; line-height: 1.55; }
.pl-next__steps li > div { transition: opacity .5s var(--ease); }
.pl-next.is-live .pl-next__steps li:not(.is-lit) .pl-next__n { background: var(--limewash); color: var(--walnut); }
.pl-next.is-live .pl-next__steps li:not(.is-lit) > div { opacity: .42; }

/* ---------- pieces that started out tired ---------- */
.pl-tired__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.pl-tired .sec-head .link-arrow { margin-top: 12px; }
.tired { display: block; text-decoration: none; color: var(--ink); }
.tired__img { position: relative; display: block; aspect-ratio: 1 / 1; max-height: min(52vh, 470px); width: 100%; overflow: clip; border-radius: 3px; background: var(--night); }
.tired__img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.tired__b { opacity: 0; transform: scale(1.06); }
.tired:hover .tired__b, .tired:focus-visible .tired__b, .tired.is-done .tired__b { opacity: 1; transform: scale(1); }
.tired:hover .tired__a, .tired:focus-visible .tired__a, .tired.is-done .tired__a { transform: scale(1.04); }
.tired__lbl { position: absolute; left: 14px; bottom: 14px; z-index: 3; display: grid; }
.tired__lbl > span { grid-area: 1 / 1; padding: 6px 12px; border-radius: 2px; font-size: .95rem; font-weight: 700; transition: opacity .45s var(--ease), transform .55s var(--ease); }
.tired__la { background: rgba(23, 32, 26, .82); color: var(--cream); }
.tired__lb { background: var(--brass); color: var(--night); opacity: 0; transform: translateY(8px); }
.tired:hover .tired__la, .tired:focus-visible .tired__la, .tired.is-done .tired__la { opacity: 0; transform: translateY(-8px); }
.tired:hover .tired__lb, .tired:focus-visible .tired__lb, .tired.is-done .tired__lb { opacity: 1; transform: none; }
.tired__img .tag { position: absolute; top: 34px; right: 16px; z-index: 3; --string: 48px; }
.tired__img .tag__body { min-width: 0; max-width: 180px; padding: 30px 14px 13px; }
.tired__img .tag__title { font-size: 1.02rem; }
.tired__cap { display: block; margin-top: 14px; }
.tired__cap strong { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.2; margin-bottom: 4px; }
.tired__cap span { display: block; color: var(--ink-2); font-size: 1.02rem; line-height: 1.45; }
.tired:focus-visible { outline-offset: 6px; }
/* no JS: the finished photo sits inset in the corner so it can be seen without hovering */
.no-js .tired__b { opacity: 1; transform: none; inset: auto 12px 12px auto; width: 36%; height: 36%; border: 3px solid var(--limewash-2); border-radius: 2px; z-index: 2; }
.no-js .tired:hover .tired__b { inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .pl-tiles--piece .tile__name { font-size: 1rem; padding: 10px; }
  .pl-tiles--work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--check .tile__face { min-height: 56px; }
}
@media (max-width: 1000px) {
  .pl-tool__grid { grid-template-columns: minmax(0, 1fr); }
  .pl-tool__side { position: relative; top: 0; width: min(100%, 420px); justify-self: center; }
  .pl-res__grid { grid-template-columns: minmax(0, 1fr); }
  .pl-match { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .pl-match__img { aspect-ratio: auto; min-height: 220px; }
  .pl-next__grid { grid-template-columns: minmax(0, 1fr); }
  .pl-next__frame { width: min(82%, 380px); justify-self: center; }
  .pl-tired__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-tired__grid li:last-child { grid-column: 1 / -1; }
  .pl-tired__grid li:last-child .tired__img { aspect-ratio: 16 / 9; }
}
@media (max-width: 700px) {
  .pl-prog__lbl { display: none; }
  .pl-prog__dots { gap: 14px; }
  .pl-tiles--piece, .pl-tiles--look, .pl-tiles--work, .pl-tiles--get { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tile--photo .tile__face { flex-direction: row; align-items: center; min-height: 72px; }
  .tile--photo .tile__img, .pl-tiles--look .tile__img { width: 72px; height: 72px; aspect-ratio: auto; flex: none; }
  .tile--photo .tile__name { padding: 10px 50px 10px 14px; }
  .tile__tick { top: 50%; margin-top: -15px; right: 14px; }
  .tile:hover .tile__face { transform: none; }
  .pl-where { grid-template-columns: minmax(0, 1fr); }
  .pl-nav .btn { padding-inline: 18px; }
  .pl-res__list { grid-template-columns: minmax(0, 1fr); }
  .pl-res__acts .btn { width: 100%; justify-content: center; }
  .pl-match { display: block; }
  .pl-match__img { aspect-ratio: 4 / 3; min-height: 0; }
  .pl-tired__grid { grid-template-columns: minmax(0, 1fr); }
  .pl-tired__grid li:last-child .tired__img { aspect-ratio: 1 / 1; }
  .tired__img { max-height: none; aspect-ratio: 4 / 3.8; }
}
