/* Framing effect lesson. All rules scoped under .fx-* */

.fx-sc { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fx-note { font-size: 12px; color: var(--faint); text-align: center; }
.fx-hero img { width: 100%; max-width: 280px; max-height: 260px; object-fit: contain; display: block; }

/* the rating deck */
.fx-deck { width: 100%; display: grid; place-items: center; min-height: 250px; }
.fx-card { position: relative; width: 250px; padding: 16px 14px 18px; border-radius: 22px; background: var(--surface); border: 2px solid var(--line); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; animation: fx-in .3s cubic-bezier(.2, .8, .2, 1); transition: transform .24s, opacity .24s; }
.fx-card img { width: 108px; height: 96px; object-fit: contain; margin-bottom: 6px; }
.fx-card small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.fx-card b { font: 800 25px/1.2 var(--serif); }
.fx-n { position: absolute; top: 10px; right: 14px; font: 700 12px var(--mono); color: var(--faint); }
.fx-stamp { position: absolute; left: 50%; bottom: -14px; translate: -50% 0; padding: 2px 10px; border-radius: 999px; background: var(--gold); color: #2A1B00; font-size: 15px; letter-spacing: 1px; animation: fx-in .2s; }
.fx-card.fx-out { transform: translateX(-120%) rotate(-8deg); opacity: 0; }
@keyframes fx-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.fx-ends { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--dim); padding: 0 4px; }
.fx-rate { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.fx-rate .fx-st { min-height: 56px; padding: 0; gap: 3px; letter-spacing: 0; }
.fx-rate .fx-st b { font: 800 20px var(--mono); color: var(--text); }
.fx-rate .fx-st i { font-style: normal; font-size: 15px; color: var(--gold); }

/* the twin hunt */
.fx-grid { width: 100%; max-width: 360px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fx-cell { position: relative; min-height: 58px; padding: 6px 8px; border-radius: 14px; background: var(--surface); border: 2px solid var(--line); box-shadow: 0 3px 0 #2b2e38; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-align: center; transition: border-color .2s, background .2s, opacity .3s; }
.fx-cell small { font-size: 12px; color: var(--dim); font-weight: 700; }
.fx-cell b { font-size: 15px; line-height: 1.15; }
.fx-cell.fx-tgt { border-color: var(--gold); background: rgba(252, 192, 80, .14); box-shadow: 0 3px 0 var(--gold-deep); pointer-events: none; }
.fx-cell.fx-no { border-color: var(--red); background: rgba(216, 85, 85, .14); }
.fx-cell.fx-pair { pointer-events: none; }
.fx-cell.fx-p0 { border-color: var(--mint); background: rgba(63, 214, 154, .12); }
.fx-cell.fx-p1 { border-color: var(--violet-bright); background: rgba(123, 92, 253, .14); }
.fx-cell.fx-p2 { border-color: #F2A0C8; background: rgba(242, 160, 200, .12); }
.fx-cs:empty { display: none; }
.fx-got { font-size: 13px; letter-spacing: 1px; color: var(--gold); white-space: nowrap; }
.fx-got i { font-style: normal; color: rgba(234, 227, 215, .2); }
.fx-cell .fx-got { font-size: 12px; }

/* your stars */
.fx-tally { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 10px; }
.fx-th { display: grid; grid-template-columns: 1fr 22px 1fr; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); text-align: center; }
.fx-th span:last-child { grid-column: 3; }
.fx-tr { display: grid; grid-template-columns: 1fr 22px 1fr; align-items: center; }
.fx-tr > i { font-style: normal; text-align: center; font-weight: 800; color: var(--gold); font-size: 20px; }
.fx-tc { padding: 8px 6px; border-radius: 14px; background: var(--surface); border: 2px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.fx-tc b { font-size: 14px; line-height: 1.15; }
.fx-tc.fx-win { border-color: var(--gold); }

/* the name */
.fx-frames { display: flex; align-items: center; gap: 12px; }
.fx-frame { padding: 16px; border-radius: 6px; border: 8px solid #B08A4A; box-shadow: inset 0 0 0 2px #6E5328, 0 8px 20px rgba(0, 0, 0, .35); background: var(--surface); }
.fx-frame b { font: 800 20px var(--serif); white-space: nowrap; }
.fx-good b { color: var(--mint); }
.fx-bad b { color: #F07A7E; }
.fx-eq { font-size: 28px; font-weight: 800; color: var(--gold); }

/* the label that points */
.fx-point { container-type: inline-size; position: relative; width: 100%; max-width: 330px; display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.fx-tag { position: relative; align-self: flex-start; margin-left: calc(37.5% - 62px); width: 124px; padding: 10px 0; border-radius: 12px; background: #1E9E6A; text-align: center; transition: margin-left .5s cubic-bezier(.2, .8, .2, 1), background .3s, transform .22s; }
.fx-tag b { font: 800 19px var(--sans); color: #fff; }
.fx-tag::after { content: ''; position: absolute; left: 50%; bottom: -9px; translate: -50% 0; border: 10px solid transparent; border-bottom: 0; border-top-color: inherit; border-top: 10px solid #1E9E6A; transition: border-color .3s; }
.fx-tag.fx-turn { transform: rotateX(90deg); }
.fx-flip .fx-tag { margin-left: calc(100% - 124px); background: #C23B3B; }
.fx-flip .fx-tag::after { left: calc(124px - 12.5cqw); border-top-color: #C23B3B; }
.fx-bar { display: flex; width: 100%; height: 52px; border-radius: 12px; overflow: hidden; font-size: 13px; font-weight: 800; }
.fx-bar span { display: grid; place-items: center; transition: opacity .4s, filter .4s; }
.fx-l { width: 75%; background: #B8433F; color: #fff; }
.fx-f { width: 25%; background: #F2D8CF; color: #5A2A26; }
.fx-point .fx-f { opacity: .35; }
.fx-flip .fx-f { opacity: 1; }
.fx-flip .fx-l { opacity: .35; }

/* the taste test */
.fx-plates { display: flex; gap: 14px; }
.fx-plate { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 140px; padding: 12px 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.fx-plate img { width: 96px; height: 64px; object-fit: contain; margin-bottom: 6px; display: block; }
.fx-plate small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.fx-plate b { font-size: 17px; }
.fx-meter { width: 100px; height: 14px; margin-top: 6px; border-radius: 7px; background: var(--raised); overflow: hidden; }
.fx-meter i { display: block; height: 100%; width: 0; border-radius: 7px; background: var(--gold); transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.fx-shown .fx-m1 i { width: 78%; }
.fx-shown .fx-m2 i { width: 62%; }

/* the surgery */
.fx-pic { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.fx-pic img { height: 150px; max-width: 100%; object-fit: contain; display: block; }
.fx-who { display: flex; gap: 8px; }
.fx-who span { padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.fx-two { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 330px; }
.fx-heard { padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 2px solid var(--mint); }
.fx-heard.fx-bad2 { border-color: #F07A7E; }
.fx-heard small { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.fx-heard b { font-size: 16px; }
.fx-res { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 340px; margin-top: 4px; }
.fx-rrow { display: grid; grid-template-columns: 104px 1fr 42px; gap: 8px; align-items: center; }
.fx-rrow span { font-size: 13px; font-weight: 700; color: var(--dim); }
.fx-track { height: 16px; border-radius: 8px; background: var(--raised); overflow: hidden; }
.fx-track i { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--gold); transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.fx-res.fx-shown .fx-track i { width: var(--n); }
.fx-rrow b { font: 800 15px var(--mono); text-align: right; }

/* flip it yourself */
.fx-press { width: 100%; max-width: 330px; display: flex; flex-direction: column; gap: 10px; }
.fx-ad { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, #3A2E7A, #1E1A40); border: 2px solid var(--violet-bright); text-align: center; }
.fx-ad small, .fx-out2 small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.fx-ad b { font: 800 20px/1.25 var(--serif); }
.fx-out2 { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 18px; border: 2px dashed var(--line-strong, rgba(234, 227, 215, .3)); text-align: center; }
.fx-out2 b { font: 800 19px/1.25 var(--serif); }
.fx-out2 span { color: var(--gold); }
.fx-gym { height: 40px; opacity: 0; transition: opacity .5s; }
.fx-gym .fx-l { width: 80%; background: #1E9E6A; }
.fx-gym .fx-f { width: 20%; background: #C23B3B; color: #fff; }
.fx-press.fx-shown .fx-gym { opacity: 1; }
.fx-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx-tiles .btn { min-height: 48px; text-transform: none; }
.fx-tiles .btn[disabled].fx-on { background: var(--gold); color: #2A1B00; }

/* who picks the side */
.fx-price { width: 100%; max-width: 330px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx-price > div { padding: 14px 8px; border-radius: 18px; background: var(--surface); border: 2px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fx-price small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.fx-price b { font: 800 26px var(--mono); }
.fx-gap { grid-column: 1 / -1; margin: 0; text-align: center; font-size: 15px; line-height: 1.5; color: var(--dim); }
.fx-gap span { display: inline-block; padding: 1px 8px; border-radius: 8px; background: var(--raised); color: var(--text); }
.fx-gap em { font-style: normal; font-weight: 800; }
.fx-shown .fx-gap span:first-of-type { background: rgba(216, 85, 85, .25); text-decoration: line-through; }
.fx-shown .fx-gap span:last-of-type { background: rgba(63, 214, 154, .22); }

@media (max-height: 700px) {
  .fx-hero img { max-height: 200px; }
  .fx-deck { min-height: 214px; }
  .fx-card { padding: 12px 12px 16px; }
  .fx-card img { width: 84px; height: 70px; }
  .fx-card b { font-size: 22px; }
  .fx-cell { min-height: 50px; padding: 4px 6px; }
  .fx-plate img { width: 76px; height: 50px; }
  .fx-pic img { height: 110px; }
}
