/* Levers 1 to 3 (ch-levers-1-3.js). Every selector starts with l13-. Instagram pieces come from ig.css (ik-).
 * Compact = (max-width: 959px), (max-height: 599px); phone = (max-width: 759px) and (orientation: portrait).
 * Mock phones live in .l13-stage, a size container: below 540 px of height the phone keeps its width and crops its
 * bottom (a fade says it continues); "tight" (under 330 px) and "tiny" (under 230 px) drop secondary rows. */

/* ---------- shared ---------- */
.l13-stack { display: grid; }
.l13-stack__i { grid-area: 1 / 1; display: grid; gap: 10px; align-content: start; }
.scene .l13-lab { font-size: 15px; line-height: 1.25; transition: opacity .45s; color: #fff; text-shadow: 0 1px 12px rgb(0 0 0 / .9), 0 0 2px rgb(0 0 0 / .7); }
.scene .l13-lab.is-off { opacity: 0; }
.l13-lab--o { color: #FFB27A !important; }
.l13-lab--aqua { color: #A8F0E6 !important; }
.l13-lab--gold { color: #FFD98A !important; }
.l13-lab--lilac { color: #DCD0F5 !important; }
.l13-lab--dim { color: rgb(255 255 255 / .78) !important; }
.l13-lab--v { font-size: 17px !important; font-weight: 600; font-variant-numeric: tabular-nums; }
.l13-legend { margin-top: 2px; }
.scene .l13-combo { display: grid; justify-items: center; gap: 1px; text-align: center; }
.l13-combo__v { display: none; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.l13-b1v .l13-combo__v { display: block; }
.l13-w2leg { display: none; grid-template-columns: repeat(2, max-content); gap: 4px 18px; }
.l13-w2leg .ig-legend__r { color: #fff; }
.l13-w2leg .ig-legend__r.is-best { color: #FFB27A; }
.l13-w2leg .l13-combo__v { font-size: 14px; font-weight: 600; }
.l13-b1v .l13-w2leg .l13-combo__v { display: inline; }
@media (max-width: 959px), (max-height: 599px) { .l13-b1v .l13-w2leg { display: grid; } }
@media (max-width: 959px) and (orientation: landscape), (max-height: 599px) and (orientation: landscape) { .l13-w2leg { display: grid; } }
/* compact landscape: a narrow text column under the title leaves the pier scene a wide free area beside it */
@media (max-width: 959px) and (orientation: landscape), (max-height: 599px) and (orientation: landscape) {
  .scene.l13-w2 .ig--full .ig-side, .scene.l13-w3 .ig--full .ig-side { max-width: min(15.5em, 100%); }
  .scene.l13-w2.l13-b1v .ig--full .ig-side { max-width: min(20em, 100%); }
  .l13-w2leg { grid-template-columns: max-content max-content; gap: 3px 14px; }
}
/* compact landscape 3D scenes: a narrower text column leaves a real free area beside it */
@media (max-width: 959px) and (orientation: landscape), (max-height: 599px) and (orientation: landscape) {
  .l13-w .ig--full .ig-side { max-width: min(21em, 100%); }
}
.l13-w .ig-note { color: rgb(255 255 255 / .86); }

/* ---------- mock scenes: the phone stage ---------- */
.l13-stage { position: relative; height: 100%; min-height: 0; display: grid; place-items: center; container: l13s / size; }
.l13-stage .l13-ph { position: relative; z-index: 2; height: 100%; width: auto; max-width: 100%; aspect-ratio: 9 / 18.6; }
.l13-view { position: absolute; inset: 0; overflow: hidden; background: #fff; transition: transform .62s cubic-bezier(.3, .7, .2, 1), opacity .5s; }
.l13-view.is-next { transform: translateX(100%); visibility: hidden; transition: transform .62s cubic-bezier(.3, .7, .2, 1), opacity .5s, visibility 0s .62s; }
.l13-view.is-past { transform: translateX(-28%); opacity: 0; visibility: hidden; transition: transform .62s cubic-bezier(.3, .7, .2, 1), opacity .5s, visibility 0s .62s; }
.l13-ex { position: absolute; left: 0; top: 0; z-index: 3; }
.l13-ann { transition: opacity .5s .45s; }
.ik-status__t.has-ex .l13-clock { display: none; }
.ik-status:has(.has-ex) .ik-notch { display: none; }
.l13-ph .l13-ex.l13-ex--bar { position: static; height: 20px; padding: 0 6px; font-weight: 500; background: #fff; }
.l13-clock { display: block; width: 30px; height: 8px; border-radius: 4px; background: #111; opacity: .85; }
.ik-phone .ik-bar { flex: none; }

/* crop: the phone keeps a readable width when the stage is short */
@container l13s (max-height: 540px) {
  .l13-stage .l13-ph { aspect-ratio: auto; width: min(100%, 290px); height: 100%; -webkit-mask: linear-gradient(#000 calc(100% - 34px), transparent); mask: linear-gradient(#000 calc(100% - 34px), transparent); }
}

/* compact landscape mocks: title and text in the left column, the phone takes the full height on the right */
@media (max-width: 959px) and (orientation: landscape), (max-height: 599px) and (orientation: landscape) {
  .scene.l13-mock .ig--split { grid-template-columns: minmax(0, 1fr) clamp(250px, 44%, 380px); grid-template-rows: auto minmax(0, 1fr); }
  .l13-mock .ig--split .ig-t { grid-column: 1; grid-row: 1; max-width: 100%; }
  .l13-mock .ig--split .ig-side { grid-column: 1; grid-row: 2; max-width: none; }
  .l13-mock .ig--split .ig-vis { grid-column: 2; grid-row: 1 / 3; }
}
/* the shortest frames: l2-how carries a pitfall too, so its title spans both columns there */
@media (max-height: 439px) and (orientation: landscape) {
  .l13-h2.l13-b1 .ig--split .ig-t { grid-column: 1 / -1; }
  .l13-h2.l13-b1 .ig--split .ig-vis { grid-row: 2; }
}

/* ---------- l1-proof: insights, then the profile ---------- */
.l13-p1__ins { display: grid; align-content: start; }
.l13-p1__post { display: flex; gap: 12px; align-items: center; padding: 12px 14px 6px; }
.l13-p1__thumb { flex: none; width: 54px; aspect-ratio: 4 / 5; border-radius: 4px; }
.l13-p1__meta { flex: 1; display: grid; gap: 8px; }
.l13-p1__rows { display: grid; padding-top: 4px; }
.l13-p1__row { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--d), transform .5s var(--d); }
.l13-p1.is-active .l13-p1__row { opacity: 1; transform: none; }
.l13-p1__row .ik-stat__bar i { transition-delay: var(--d); }
.l13-p1__row.ik-stat--orange { margin: 4px 8px 0; padding: 10px 6px; border-radius: 8px; background: #FFF3EA; box-shadow: inset 0 0 0 1.5px rgb(255 127 50 / .45); }
.l13-p1__row.ik-stat--orange .ik-stat__bar { background: #FFE2CF; }
.l13-p1__more { display: grid; gap: 8px; padding: 14px; }
.l13-p1__prof .ik-prof { padding-top: 10px; }
.l13-p1__prof .ik-prof__pins { margin: 0 -14px; position: relative; }
.l13-p1__prof .ik-prof__bio { font-weight: 500; }
.l13-p1 .ik-prof__bio, .l13-p1 .ik-prof__pins { transition: box-shadow .5s .5s; }
.l13-p1.l13-b1 .ik-prof__bio { box-shadow: 0 0 0 4px #FFF3EA, 0 0 0 5.5px rgb(255 127 50 / .6); border-radius: 2px; }
.l13-p1.l13-b1 .ik-prof__pins { box-shadow: 0 0 0 3px rgb(255 127 50 / .75); }
.l13-p1__cap { display: none; align-items: center; gap: 8px; margin: -2px 0; font-size: 14px; font-weight: 600; line-height: 1.2; color: #C4561A; }
.l13-p1__cap::before { content: ""; flex: none; width: 3px; height: 16px; border-radius: 2px; background: #FF7F32; }
.l13-ann-in .l13-p1__cap { display: flex; }
.l13-stage.l13-ann-in > .l13-ann { display: none; }

@container l13s (max-height: 330px) {
  .l13-p1__post, .l13-p1__more { display: none; }
  .l13-p1__ins .ik-head { padding: 6px 12px; }
  .l13-p1__row.ik-stat { padding: 6px 14px; gap: 3px 10px; }
  .l13-p1__row.ik-stat--orange { padding: 6px 6px; }
  .l13-p1__row .ik-stat__bar { height: 9px; }
  .l13-p1__prof .ik-prof__row { display: none; }
  .l13-p1__prof .ik-prof { gap: 7px; padding-top: 6px; }
  .l13-p1__prof .ik-btn { min-height: 28px; }
}
@container l13s (max-height: 230px) {
  .l13-p1__ins .ik-head { display: none; }
  .l13-p1__prof .ik-prof__top { display: none; }
  .l13-p1__prof .ik-prof__grid { display: none; }
}

/* ---------- l1-how: tiles ranked by sends per reach, then the top Reel ---------- */
.l13-h1__ins { display: grid; align-content: start; }
.l13-h1__leg { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.l13-h1__tick { width: 3px; height: 16px; border-radius: 1px; background: #111; }
.l13-h1__grid { gap: 2px; }
.l13-h1__tile { opacity: 0; transform: scale(.96); transition: opacity .45s var(--d), transform .45s var(--d), filter .6s 1.5s, box-shadow .6s 1.5s; }
.l13-h1.is-active .l13-h1__tile { opacity: 1; transform: none; }
.l13-h1.is-active .l13-h1__tile:not(.is-up) { filter: saturate(.35) brightness(.78); }
.l13-h1.is-active .l13-h1__tile.is-up { box-shadow: inset 0 0 0 3px #FF7F32, 0 0 18px -2px rgb(255 127 50 / .7); z-index: 1; }
.l13-h1__tile .ik-cover__t { top: 6px; left: 6px; right: 6px; transform: none; text-align: left; font-size: 15px; line-height: 1.12; }
.l13-h1__send { position: absolute; right: 5px; bottom: 17px; z-index: 2; color: #fff; filter: drop-shadow(0 1px 3px rgb(0 0 0 / .6)); }
.l13-h1__bar { position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 2; height: 7px; border-radius: 4px; background: rgb(0 0 0 / .38); box-shadow: 0 0 0 1px rgb(255 255 255 / .35); }
.l13-h1__bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; width: 0; background: #fff; transition: width .9s cubic-bezier(.2, .8, .2, 1) calc(var(--d) + .4s); }
.l13-h1.is-active .l13-h1__bar i { width: calc(var(--v) * 100%); }
.l13-h1__tile.is-up .l13-h1__bar i { background: #FF7F32; }
.l13-h1__bar b { position: absolute; top: -4px; bottom: -4px; left: calc(var(--avg) * 100%); width: 2px; margin-left: -1px; border-radius: 1px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .5); }
.l13-h1__val { position: absolute; left: 6px; bottom: 17px; z-index: 2; font-size: 16px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 1px 4px rgb(0 0 0 / .6); }
.l13-h1__play { background: #111; }
.l13-h1__prog { position: absolute; left: 12px; right: 12px; top: 8px; z-index: 3; height: 3px; border-radius: 2px; background: rgb(255 255 255 / .35); overflow: hidden; }
.l13-h1__prog i { position: absolute; inset: 0 auto 0 0; width: 0; background: #fff; }
.l13-h1.is-active.l13-b1 .l13-h1__prog i { width: 100%; transition: width 1.9s linear .2s; }
.l13-h1 .ik-reel__top { top: 9%; }
.l13-h1 .ik-reel__end { opacity: 0; transform: scale(.86) translateY(10px); transition: opacity .45s, transform .55s cubic-bezier(.3, 1.4, .5, 1); }
.l13-h1 .ik-reel.is-end .ik-reel__end { opacity: 1; transform: none; }
.l13-h1 .ik-rail__b--send { position: relative; }
.l13-h1__ring { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #FF7F32; opacity: 0; }
.l13-h1 .ik-rail__b--send.is-hot .l13-h1__ring { animation: l13-ring 1.4s ease-out infinite; }
@keyframes l13-ring { 0% { transform: scale(.7); opacity: .95; } 100% { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .l13-h1 .ik-rail__b--send.is-hot .l13-h1__ring { animation: none; opacity: .8; transform: scale(1.25); } .l13-h1.is-active.l13-b1 .l13-h1__prog i { transition: none; } }

@container l13s (max-height: 330px) {
  .l13-h1__ins .ik-head { padding: 6px 12px; }
  .l13-h1__leg { padding: 5px 12px; }
  .l13-h1 .ik-reel__top { top: 12%; font-size: 15px; padding: 4px 8px; }
  .l13-h1 .ik-reel__end { top: 40%; font-size: 15px; padding: 7px 9px; }
  .l13-h1 .ik-rail { bottom: 12px; gap: 4px; }
  .l13-h1 .ik-rail__b--heart, .l13-h1 .ik-rail__b--comment { display: none; }
  .l13-h1 .ik-reel__foot { display: none; }
}
@container l13s (max-height: 230px) {
  .l13-h1__ins .ik-head { display: none; }
  .l13-h1 .ik-reel__top { top: 14%; }
  .l13-h1 .ik-reel__end { top: 50%; }
}

/* ---------- l2-how: the share screen, then the same Reel three times as trial reels ---------- */
.l13-h2__head { padding: 8px 12px; }
.l13-h2__hb { display: grid; justify-items: center; }
.l13-h2__share, .l13-h2__list { display: grid; align-content: start; }
.l13-h2__cap { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #EFEFEF; }
.l13-h2__thumb { flex: none; width: 52px; aspect-ratio: 9 / 16; border-radius: 6px; }
.l13-h2__capb { flex: 1; display: grid; gap: 8px; align-content: start; padding-top: 4px; }
.l13-h2__r { padding: 11px 14px; }
.l13-h2__r--dim { opacity: .55; }
.l13-h2__r--trial { background: #F7F7F7; }
.l13-h2__r--trial .ik-row__t { font-size: 16px; }
.l13-h2__r--sub { padding-left: 48px; background: #F7F7F7; }
.l13-h2__r--sub .ik-row__t { font-weight: 500; line-height: 1.3; }
.l13-h2__list { grid-template-rows: auto auto minmax(0, 1fr); height: 100%; }
.l13-h2__lh { display: flex; justify-content: flex-end; padding: 8px 16px 2px; font-size: 14px; font-weight: 600; color: #737373; }
.l13-h2__rows { display: grid; grid-auto-rows: minmax(0, 1fr); gap: 10px; padding: 6px 12px 16px; min-height: 0; }
.l13-h2__tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; min-height: 0; opacity: 0; transform: translateY(8px); transition: opacity .45s var(--d), transform .45s var(--d); }
.l13-h2.is-active.l13-b1 .l13-h2__tr { opacity: 1; transform: none; }
.l13-h2__tthumb { height: 100%; max-height: 150px; min-height: 40px; aspect-ratio: 9 / 16; border-radius: 6px; }
.l13-h2__tb { display: grid; gap: 7px; justify-items: end; }
.l13-h2__tv { font-size: 24px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.l13-h2__tbar { position: relative; width: 100%; height: 12px; border-radius: 3px; overflow: hidden; background: #F1F1F1; }
.l13-h2__tbar i { position: absolute; inset: 0 auto 0 0; width: 0; background: radial-gradient(circle, #0095F6 1.5px, transparent 1.9px) 0 0 / 5px 5px; transition: width 1s cubic-bezier(.2, .8, .2, 1) calc(var(--d) + .2s); }
.l13-h2.is-active.l13-b1 .l13-h2__tbar i { width: calc(var(--v) * 100%); }
.l13-h2__tb .ik-bar { justify-self: start; }
@media (prefers-reduced-motion: reduce) { .l13-h2__tr, .l13-h2__tbar i { transition: none !important; } }
@container l13s (max-height: 380px) {
  .l13-h2__cap, .l13-h2__r--dim { display: none; }
  .l13-h2__tb .ik-bar { display: none; }
}
@container l13s (max-height: 300px) {
  .l13-h2__head { padding: 5px 12px; }
  .l13-h2__r { padding: 8px 12px; }
  .l13-h2__r--sub { padding-left: 40px; }
  .l13-h2__list .l13-h2__head { display: none; }
  .l13-h2__rows { gap: 6px; padding-bottom: 8px; }
  .l13-h2__tv { font-size: 20px; }
}
@container l13s (max-height: 230px) {
  .l13-h2__share .l13-h2__head { display: none; }
  .l13-h2__r .ik-row__i { display: none; }
  .l13-h2__r { padding: 7px 12px; }
  .l13-h2__r--sub { padding-left: 24px; }
  .l13-h2__lh { padding-top: 4px; }
}

/* ---------- l3-how: the Replace audio sheet, then the cropped covers ---------- */
.l13-h3__ed { background: #111; }
.l13-h3__cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.l13-h3__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .1), rgb(0 0 0 / .5)); }
.l13-h3__sheet { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 8px; padding: 8px 12px 18px; border-radius: 16px 16px 0 0; background: #fff; box-shadow: 0 -10px 30px -10px rgb(0 0 0 / .45); transform: translateY(18px); opacity: 0; transition: transform .55s cubic-bezier(.3, .7, .2, 1) .15s, opacity .4s .15s; }
.l13-h3.is-active .l13-h3__sheet { transform: none; opacity: 1; }
.l13-h3__grab { justify-self: center; width: 36px; height: 4px; border-radius: 2px; background: #DBDBDB; }
.l13-h3__st { text-align: center; font-size: 16px; font-weight: 700; padding: 2px 0 4px; }
.l13-h3__trk { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px; border-radius: 10px; background: #F5F5F5; transition: box-shadow .4s, background .4s, opacity .4s; }
.l13-h3__mi { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: #E8E8E8; color: #111; }
.l13-h3__tn { font-size: 15px; font-weight: 600; white-space: nowrap; }
.l13-h3__wv { width: 100%; height: 20px; }
.l13-h3__wv rect { fill: #A8A8A8; }
.l13-h3__ok { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #C7C7C7; color: transparent; transition: background .3s, color .3s, box-shadow .3s; }
.l13-h3__trk--cur .l13-h3__ok { background: #111; color: #fff; box-shadow: none; }
.l13-h3__trk--new .l13-h3__wv rect { fill: #FF7F32; }
.l13-h3__arrow { justify-self: center; color: #A8A8A8; margin: -4px 0; }
.l13-h3__ed.is-swapped .l13-h3__trk--cur { opacity: .55; }
.l13-h3__ed.is-swapped .l13-h3__trk--cur .l13-h3__ok { background: none; color: transparent; box-shadow: inset 0 0 0 1.5px #C7C7C7; }
.l13-h3__ed.is-swapped .l13-h3__trk--new { background: #FFF3EA; box-shadow: inset 0 0 0 2px #FF7F32; }
.l13-h3__ed.is-swapped .l13-h3__trk--new .l13-h3__ok { background: #FF7F32; color: #fff; box-shadow: none; }
.l13-h3__more { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; align-items: center; padding: 6px 10px 0; opacity: .5; }
@container l13s (max-height: 420px) {
  .l13-h3__more { display: none; }
  .l13-h3__sheet { gap: 6px; padding-bottom: 12px; }
}
@container l13s (max-height: 300px) {
  .l13-h3__grab, .l13-h3__arrow { display: none; }
  .l13-h3__st { padding: 0; font-size: 15px; }
  .l13-h3__trk { padding: 7px 8px; }
  .l13-h3__mi { width: 24px; height: 24px; }
}
.l13-h3__gv { display: grid; align-content: start; }
.l13-h3__ptop { display: flex; gap: 12px; align-items: center; padding: 10px 14px; }
.l13-h3__ptop .ik-av { width: 48px; height: 48px; }
.l13-h3__pb { flex: 1; display: grid; gap: 8px; }
.l13-h3__tabs { display: flex; justify-content: space-around; padding: 6px 0; border-top: 1px solid #EFEFEF; color: #737373; }
.l13-h3__tabs .ik-i:first-child { color: #000; }
.l13-h3__grid { gap: 2px; overflow: visible; }
.l13-h3__tile { overflow: visible; }
.l13-h3__tile.is-big .ik-cover__t { font-size: 17px; line-height: 1.1; }
.l13-h3__cut { z-index: 2; }
.l13-h3__corner { position: absolute; left: 7%; top: 5%; z-index: 2; display: grid; gap: 3px; width: 42%; }
.l13-h3__corner .ik-bar { height: 4px; background: rgb(255 255 255 / .9); }
.l13-h3__corner--in { top: -6%; opacity: 0; transition: opacity .4s 1.4s; }
.l13-h3__frame { position: absolute; left: 0; right: 0; top: 50%; aspect-ratio: 9 / 16; transform: translateY(-50%); z-index: 3; pointer-events: none; }
.l13-h3__full { position: absolute; inset: 0; border-radius: 2px; transition: clip-path 1s cubic-bezier(.5, 0, .2, 1); clip-path: inset(0 0 0 0); }
.l13-h3__full::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(255 255 255 / .55) 0 12.5%, transparent 12.5% 87.5%, rgb(255 255 255 / .55) 87.5%); transition: opacity .6s; }
.l13-h3__box { position: absolute; left: -2px; right: -2px; top: calc(12.5% - 2px); bottom: calc(12.5% - 2px); border: 2.5px solid #FF7F32; border-radius: 3px; box-shadow: 0 0 16px rgb(255 127 50 / .55); }
.l13-h3__ratio { position: absolute; right: 4px; top: calc(12.5% + 4px); z-index: 2; height: 24px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 4px; background: #FF7F32; color: #fff; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.l13-h3__frame.is-cropped .l13-h3__full { clip-path: inset(12.5% 0 12.5% 0); }
.l13-h3__frame.is-cropped .l13-h3__full::after { opacity: 0; }
.l13-h3__frame .l13-h3__full .l13-h3__corner { top: 3%; transition: opacity .5s; }
.l13-h3__frame.is-cropped .l13-h3__full .l13-h3__corner { opacity: .35; }
@media (prefers-reduced-motion: reduce) { .l13-h3__full, .l13-h3__full::after { transition: none; } }

@container l13s (max-height: 420px) {
  .l13-h3__ptop, .l13-h3__tabs { display: none; }
}
@container l13s (max-height: 330px) {
  .l13-h3__gv { padding-top: 10%; }
  .l13-h3__grid { --cols: 4 !important; }
  .l13-h3__tile:nth-child(9) { display: none; }
  .l13-h3__tile { order: 5; }
  .l13-h3__tile:nth-child(1) { order: 1; } .l13-h3__tile:nth-child(5) { order: 2; } .l13-h3__tile:nth-child(3) { order: 3; } .l13-h3__tile:nth-child(6) { order: 4; }
  .l13-h3__tile.is-big .ik-cover__t { font-size: 15px; }
}

/* l1-how beat 2: the top post's Insights panel */
.l13-h1__panel { display: grid; align-content: start; }
.l13-h1__pb { display: grid; justify-items: center; }
.l13-h1__post { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid #EFEFEF; }
.l13-h1__pimg { flex: none; width: 38%; aspect-ratio: 4 / 5; border-radius: 6px; }
.l13-h1__pmeta { flex: 1; display: grid; gap: 8px; padding-top: 4px; }
.l13-h1__rows { display: grid; padding-top: 4px; }
.l13-h1__row { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--d), transform .5s var(--d); }
.l13-h1.is-active.l13-b1 .l13-h1__row { opacity: 1; transform: none; }
.l13-h1__row .ik-stat__bar i { transition-delay: var(--d); }
.l13-h1__row.ik-stat--orange { margin: 6px 8px 0; padding: 12px 8px; border-radius: 8px; background: #FFF3EA; box-shadow: inset 0 0 0 1.5px rgb(255 127 50 / .45); }
.l13-h1__row.ik-stat--orange .ik-stat__bar { display: none; }
.l13-h1__row.ik-stat--orange .ik-stat__l { font-weight: 600; }
.l13-h1__row.ik-stat--orange .ik-stat__v { font-size: 26px; }
@container l13s (max-height: 470px) {
  .l13-h1__pimg { width: 24%; }
  .l13-h1__post { padding: 8px 12px; }
}
@container l13s (max-height: 380px) {
  .l13-h1__post { display: none; }
}
@container l13s (max-height: 300px) {
  .l13-h1__post, .l13-h1__phead { display: none; }
  .l13-h1__row.ik-stat { padding: 6px 14px; }
  .l13-h1__row.ik-stat--orange { padding: 8px; }
  .l13-h1__row.ik-stat--orange .ik-stat__v { font-size: 22px; }
}

/* l2-how beat 2 on short stages: the numbers and bars only */
@container l13s (max-height: 300px) {
  .l13-h2__tthumb { display: none; }
  .l13-h2__tr { grid-template-columns: minmax(0, 1fr); }
  .l13-h2__tb { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; }
  .l13-h2__tv { font-size: 18px; }
  .l13-h2__rows { grid-auto-rows: auto; align-content: start; gap: 8px; }
}
/* l2-why on the shortest landscape frames: tighter text column so the legend stays above the bottom HUD zone */
@media (max-height: 439px) and (orientation: landscape) {
  .scene.l13-w2 .ig-side, .scene.l13-w2 .l13-stack__i { gap: 5px; }
  .scene.l13-w2 .l13-w2leg { gap: 1px 14px; }
  .scene.l13-w2 .l13-w2leg .ig-legend__r { line-height: 1.2; }
}
