/* Speculation lesson. All rules scoped under .spc-* */
.spc-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.spc-note { font-size: 12.5px; color: var(--faint); text-align: center; max-width: 330px; }

/* the people */
.spc-row, .spc-pk .choices.spc-two { display: flex; flex-direction: row; justify-content: center; align-items: flex-end; gap: 18px; width: 100%; }
.spc-pk { width: 100%; }
.spc-pk .choice { padding: 4px 6px 8px; min-height: 0; background: transparent; border-color: transparent; box-shadow: none; justify-content: center; }
.spc-pk .choice.right { border-color: var(--mint); background: rgba(63,214,154,.08); }
.spc-pk .choice.wrong { border-color: var(--red); background: rgba(216,85,85,.08); }
.spc-p { position: relative; display: flex; flex-direction: column; align-items: center; width: 140px; animation: spcIn .5s cubic-bezier(.2,.8,.2,1) both; }
.spc-theo { animation-name: spcFromRight; }
@keyframes spcIn { from { opacity: 0; translate: 0 10px; } }
@keyframes spcFromRight { from { opacity: 0; translate: 40px 0; } }
.spc-p img { display: block; height: 172px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(123,92,253,.28)); transition: filter .4s, rotate .4s; }
.spc-p.sad img { filter: grayscale(.7) brightness(.8); rotate: -4deg; }
.spc-p.glad img { animation: spcHop .5s ease-out 2; }
@keyframes spcHop { 50% { translate: 0 -8px; } }
.spc-nm { font: 800 15px var(--sans); color: var(--text); margin-top: 4px; }
.spc-sub { font: 600 12.5px var(--sans); color: var(--dim); }
.spc-res { min-height: 20px; margin-top: 2px; font: 800 14px var(--sans); color: var(--dim); white-space: nowrap; }
.spc-res.good { color: var(--mint); }
.spc-res.bad { color: var(--red); }

/* July's price */
.spc-slot { position: relative; height: 62px; width: 100%; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 4px; }
.spc-tag { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 96px; min-height: 54px; padding: 4px 12px; border-radius: 12px; background: var(--surface); border: 2px solid var(--violet-bright); box-shadow: 0 0 16px rgba(123,92,253,.35); font-family: var(--sans); color: var(--text); cursor: pointer; }
.spc-tag span { font: 700 11.5px var(--sans); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.spc-tag b { font: 800 22px var(--sans); font-variant-numeric: tabular-nums; }
.spc-tag.spinning { animation: spcWobble .5s ease-in-out infinite alternate; }
@keyframes spcWobble { from { rotate: -4deg; } to { rotate: 4deg; } }
.spc-tag.landed.good { border-color: var(--mint); box-shadow: 0 0 16px rgba(63,214,154,.4); }
.spc-tag.landed.bad { border-color: var(--red); box-shadow: 0 0 16px rgba(216,85,85,.4); }
.spc-tag:disabled { cursor: default; color: var(--text); opacity: 1; }
.spc-fixed { border-color: var(--gold); box-shadow: 0 0 16px rgba(252,192,80,.35); cursor: default; animation: spcIn .4s ease-out both; }
.spc-fixed b { color: var(--gold); }

/* Theo's offer */
.spc-bub { position: relative; align-self: flex-end; max-width: 270px; margin-right: 6px; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--raised); border: 1px solid var(--line-strong); font: 600 13.5px/1.3 var(--sans); color: var(--text); text-align: left; transition: opacity .3s; z-index: 2; }
.spc-bub.gone { opacity: 0; }

/* onions */
.spc-pile { position: relative; width: 100%; max-width: 340px; }
.spc-pile img { display: block; width: 100%; transition: translate .8s, rotate .8s, opacity .8s; }
.spc-onion.dump .spc-pile img { translate: 0 10px; opacity: .8; }
.spc-pc { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 6px 12px; border-radius: 12px; background: rgba(10,14,26,.82); border: 2px solid var(--gold); opacity: 0; scale: .7; transition: opacity .35s, scale .35s cubic-bezier(.2,.8,.2,1.4); }
.spc-pc span { font: 700 11.5px var(--sans); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.spc-pc b { font: 800 26px var(--sans); color: var(--gold); line-height: 1.05; }
.spc-pc small { font: 600 12.5px var(--sans); color: var(--dim); }
.spc-onion.owned .spc-pc { opacity: 1; scale: 1; }
.spc-ot { position: absolute; right: 0; top: 0; border-color: var(--gold); box-shadow: none; cursor: default; }
.spc-ot.bad { border-color: var(--red); }
.spc-ot.bad b { color: var(--red); }

@media (max-height: 700px) {
  .spc-p img { height: 128px; }
  .spc-slot { height: 58px; }
  .spc-pile { max-width: 300px; }
}
@media (max-height: 700px) { .spc-deal .spc-note { display: none; } }
