/* Collateral (finance) lesson. All rules scoped under .clt-* */
.clt-note { font-size: 12.5px; color: var(--faint); text-align: center; max-width: 320px; margin: 0 auto; line-height: 1.35; }

/* ---------- the pawn shop: the owner above the counter, your side below ---------- */
.clt-shop { --h: 280px; position: relative; width: 100%; max-width: 360px; height: var(--h); margin: 0 auto; flex: none; }
.clt-clerk { position: absolute; top: 0; left: 50%; width: 112px; margin-left: -56px; opacity: 0; transform: translateY(24px); transition: opacity .4s, transform .5s cubic-bezier(.2,.8,.2,1); }
.clt-shop.open .clt-clerk { opacity: 1; transform: none; }
.clt-shelf { position: absolute; top: 84px; right: 0; width: 104px; height: 9px; border-radius: 3px; background: linear-gradient(180deg, #C98A4B, #8A5527); box-shadow: 0 4px 8px rgba(0,0,0,.35); }
.clt-shelf::before, .clt-shelf::after { content: ''; position: absolute; top: 9px; width: 6px; height: 14px; background: #6B4020; border-radius: 0 0 3px 3px; }
.clt-shelf::before { left: 14px; } .clt-shelf::after { right: 14px; }
.clt-counter { position: absolute; top: 108px; left: 0; right: 0; height: 30px; border-radius: 8px; background: linear-gradient(180deg, #D9A066, #A86A35 55%, #7E4C22); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 6px 14px rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; }
.clt-counter span { font: 700 12px var(--sans); color: #3A2210; letter-spacing: .02em; }
.clt-side { position: absolute; top: 146px; left: 4px; font: 600 12px var(--sans); color: var(--faint); }

/* the guitar: dragged up from your side, then to the shelf */
.clt-gtr { position: absolute; bottom: 8px; left: calc(50% - 82px); width: 164px; min-height: 44px; touch-action: none; cursor: grab; user-select: none; -webkit-user-drag: none; z-index: 2; filter: drop-shadow(0 8px 10px rgba(0,0,0,.45)); transition: left .55s cubic-bezier(.2,.8,.2,1), bottom .55s cubic-bezier(.2,.8,.2,1), width .55s cubic-bezier(.2,.8,.2,1), translate .55s cubic-bezier(.2,.8,.2,1); }
.clt-gtr.held { cursor: grabbing; transition: none; }
.clt-shop.given .clt-gtr { left: calc(100% - 102px); bottom: calc(var(--h) - 98px); width: 96px; cursor: default; }
.clt-shop.back .clt-gtr { left: calc(50% - 82px); bottom: 8px; width: 164px; }

/* $100 and the ticket come back to your side */
.clt-cash { position: absolute; left: 8px; bottom: 14px; width: 92px; height: 46px; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #7FD9A8, #3E9E6C); border: 2px solid #CFF3DD; box-shadow: 0 6px 12px rgba(0,0,0,.4); opacity: 0; transform: translateY(-90px) rotate(-6deg); transition: opacity .35s, transform .6s cubic-bezier(.2,.8,.2,1); }
.clt-cash b { font: 800 20px var(--sans); color: #0E3A22; }
.clt-ticket { position: absolute; right: 8px; bottom: 12px; width: 150px; padding: 8px 10px; border-radius: 6px; background: #F4E9D2; box-shadow: 0 6px 12px rgba(0,0,0,.4); display: flex; flex-direction: column; gap: 2px; opacity: 0; transform: translateY(-90px) rotate(4deg); transition: opacity .35s .15s, transform .6s .15s cubic-bezier(.2,.8,.2,1); }
.clt-ticket span { font: 600 12px var(--sans); color: #7A6440; }
.clt-ticket b { font: 800 14px/1.2 var(--sans); color: #2A1E0C; }
.clt-shop.paid .clt-cash, .clt-shop.paid .clt-ticket, .clt-shop.month .clt-ticket { opacity: 1; transform: rotate(-3deg); }
.clt-shop.paid .clt-ticket, .clt-shop.month .clt-ticket { transform: rotate(3deg); }
/* A month on, the $100 is spent. */
.clt-shop.month .clt-cash { opacity: 0; transform: translateY(20px); }
.clt-shop.back .clt-ticket { opacity: 0; transform: translateY(-110px) rotate(10deg); }
.clt-shop.kept .clt-ticket { opacity: .35; }
/* The month-later choice: the cash and the ticket are the two buttons. */
.clt-shop.choose .clt-cash { opacity: 1; transform: rotate(-3deg); }
.clt-shop.choose .clt-cash, .clt-shop.choose .clt-ticket { cursor: pointer; }
.clt-shop.payup .clt-cash { opacity: 0; transform: translateY(-110px) rotate(-6deg); }
.clt-shop.torn .clt-ticket { opacity: 0; transform: rotate(24deg) scale(.6); }
.clt-tag { position: absolute; top: 94px; right: 22px; padding: 3px 8px 3px 12px; border-radius: 3px 6px 6px 3px; background: linear-gradient(180deg, #FFE08A, var(--gold)); font: 800 12px var(--sans); color: #3A2A00; box-shadow: 0 4px 8px rgba(0,0,0,.35); opacity: 0; transform: rotate(-8deg) scale(.6); transform-origin: top left; transition: opacity .3s .5s, transform .45s .5s cubic-bezier(.3,1.6,.5,1); z-index: 3; }
.clt-tag::before { content: ''; position: absolute; left: 4px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: #3A2A00; }
.clt-shop.kept .clt-tag { opacity: 1; transform: rotate(-8deg); }
.clt-shop .clt-note { position: absolute; left: 0; right: 0; top: 150px; padding: 0 70px; }

/* ---------- two loans ---------- */
.clt-two { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.clt-lender { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.clt-lender span { font: 600 12.5px var(--sans); color: var(--dim); }
.clt-lender b { font: 800 26px var(--sans); color: var(--gold); }
.clt-brow, .clt-pk .choices.clt-two-pk { display: flex; flex-direction: row; justify-content: center; gap: 14px; width: 100%; }
.clt-pk { width: 100%; }
.clt-pk .choice { padding: 0; min-height: 0; background: transparent; border-color: transparent; box-shadow: none; justify-content: center; border-radius: 16px; }
.clt-pk .choice.right .clt-b { border-color: var(--mint); }
.clt-pk .choice.wrong .clt-b { border-color: var(--red); }
.clt-b { width: 148px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 8px 10px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); transition: opacity .4s, filter .4s, border-color .3s; }
.clt-bpic { width: 124px; height: 78px; display: flex; align-items: center; justify-content: center; }
.clt-bpic img { width: 124px; transition: transform .8s cubic-bezier(.5,0,.3,1), opacity .6s .3s; filter: drop-shadow(0 5px 7px rgba(0,0,0,.4)); }
.clt-bpic i { width: 92px; height: 58px; border-radius: 10px; border: 1.5px dashed var(--line-strong); display: flex; align-items: center; justify-content: center; font: italic 500 13px var(--serif); color: var(--faint); }
.clt-b > b { font: 800 15px var(--sans); color: var(--text); }
.clt-bwhat { font: 500 12.5px var(--sans); color: var(--dim); min-height: 16px; }
.clt-back { margin-top: 4px; display: flex; flex-direction: column; align-items: center; padding-top: 6px; border-top: 1px solid var(--line); width: 100%; }
.clt-back span { font: 600 12px var(--sans); color: var(--faint); }
.clt-back b { font: 800 19px var(--sans); color: var(--text); transition: color .3s; }
.clt-b.sold .clt-bpic img { transform: translateY(-70px) scale(.5); opacity: 0; }
.clt-b.got .clt-back b { color: var(--mint); }
.clt-b.lost { opacity: .5; filter: grayscale(1); }

/* ---------- the van that won't start ---------- */
.clt-dash { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.clt-dvan { width: 230px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.45)); transition: filter .5s; }
.clt-dash.crank .clt-dvan { animation: cltCrank .12s linear 6; }
@keyframes cltCrank { 0%, 100% { translate: 0 0; } 50% { translate: 1.5px -1px; } }
.clt-dash.dead .clt-dvan { filter: drop-shadow(0 8px 10px rgba(0,0,0,.45)) saturate(.35) brightness(.75); }
.clt-panel { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-radius: 18px; background: linear-gradient(180deg, #24222B, #121117); border: 1px solid var(--line-strong); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.clt-screen { width: 150px; height: 58px; border-radius: 8px; background: #08080A; border: 1px solid #2E2C36; display: flex; align-items: center; justify-content: center; text-align: center; }
.clt-screen span { font: 700 13px/1.3 var(--mono); color: #7FD9A8; }
.clt-dash.dead .clt-screen span { color: #FFB547; animation: cltBlink 1s steps(2, jump-none) 3; }
@keyframes cltBlink { 50% { opacity: .35; } }
.clt-start { width: 72px; height: 72px; border-radius: 50%; border: 3px solid #5A5866; background: radial-gradient(circle at 40% 35%, #4A4856, #1E1D24 70%); color: #fff; font: 800 14px var(--sans); box-shadow: 0 5px 0 #0B0B0E, 0 8px 14px rgba(0,0,0,.5); cursor: pointer; transition: translate .1s, box-shadow .1s; }
.clt-start:active, .clt-dash.crank .clt-start { translate: 0 3px; box-shadow: 0 2px 0 #0B0B0E, 0 4px 8px rgba(0,0,0,.5); }
.clt-start:disabled { cursor: default; }
.clt-dash.dead .clt-start { color: var(--faint); }

/* ---------- towed, and the gap ---------- */
.clt-tow { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.clt-tow .clt-note { order: 2; }
.clt-road { order: 1; position: relative; width: 100%; max-width: 340px; height: 96px; overflow: hidden; border-bottom: 2px solid var(--line-strong); }
.clt-truck { position: absolute; bottom: 2px; left: 50%; width: 176px; margin-left: -88px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.4)); transition: translate 1s cubic-bezier(.5,0,.6,1); }
.clt-tow.left .clt-truck { translate: 260px 0; }
.clt-bars { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 320px; }
.clt-bar { position: relative; display: grid; grid-template-columns: 1fr auto; row-gap: 4px; }
.clt-bar span { grid-row: 1; grid-column: 1; font: 600 12.5px var(--sans); color: var(--dim); }
.clt-bar b { grid-row: 1; grid-column: 2; font: 800 15px var(--sans); color: var(--text); }
.clt-bar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.clt-bar i { grid-row: 2; grid-column: 1 / -1; height: 22px; border-radius: 6px; position: relative; z-index: 1; }
.clt-bar.owe i { background: linear-gradient(180deg, #FFE08A, var(--gold) 50%, var(--gold-deep)); }
.clt-bar.got i { background: linear-gradient(180deg, #8FE6B8, var(--mint)); }
.clt-gap { position: absolute; right: 0; bottom: 0; width: 30%; height: 22px; box-sizing: border-box; border: 2px dashed var(--violet-bright); border-radius: 6px; display: flex; align-items: center; justify-content: center; font: 800 12.5px var(--sans); font-style: normal; color: var(--violet-bright); z-index: 2; opacity: 0; transition: opacity .4s; }
.clt-tow.gap .clt-gap { opacity: 1; }

@media (max-height: 700px) {
  .clt-shop { --h: 250px; }
  .clt-clerk { width: 96px; margin-left: -48px; }
  .clt-shelf { top: 72px; }
  .clt-counter { top: 94px; }
  .clt-side { top: 130px; }
  .clt-shop .clt-note { top: 132px; }
  .clt-shop.given .clt-gtr { bottom: calc(var(--h) - 86px); }
  .clt-tag { top: 82px; }
  .clt-gtr, .clt-shop.back .clt-gtr { width: 150px; left: calc(50% - 75px); bottom: 4px; }
  .clt-bpic { height: 66px; } .clt-bpic img { width: 108px; }
  .clt-dvan { width: 190px; }
  .clt-road { height: 84px; } .clt-truck { width: 150px; margin-left: -75px; }
}
