/* Anchoring effect lesson. All rules scoped under .an-* */

/* the wheel of numbers */
.an-wheel { display: flex; justify-content: center; }
.an-wheel svg { width: min(100%, 270px); height: auto; overflow: visible; }
.an-wheel .a { fill: #4a3aa8; } .an-wheel .b { fill: #1c1745; }
.an-wheel .rim { fill: none; stroke: var(--violet-deep); stroke-width: 6; }
.an-wheel .hub { fill: #f6efe2; stroke: var(--gold); stroke-width: 4; }
.an-wheel .num { font: 600 36px var(--mono); fill: #1b1b1b; text-anchor: middle; }
.an-wheel .ptr { fill: var(--gold); stroke: #070a14; stroke-width: 2; }
.an-wheel.stop .hub { stroke-width: 6; }

/* rows of bars on one scale */
.an-rows { display: flex; flex-direction: column; gap: 9px; width: 100%; }
.an-rows .rw { display: grid; grid-template-columns: 112px 1fr 44px; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; line-height: 1.15; color: var(--dim); animation: cardIn .25s both; }
.an-rows .rw i { display: block; height: 14px; border-radius: 999px; background: #06080f; overflow: hidden; }
.an-rows .rw b { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--faint); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.an-rows .rw .v { font-family: var(--mono); font-size: 14px; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.an-rows .card b { background: var(--gold); } .an-rows .card .v, .an-rows .card .lb { color: var(--gold); }
.an-rows .you b { background: var(--violet-bright); } .an-rows .you .v, .an-rows .you .lb { color: var(--violet-bright); }
.an-rows .truth b { background: var(--mint); } .an-rows .truth .v, .an-rows .truth .lb { color: var(--mint); }

/* Everest and the thermometer */
.an-ev { display: flex; align-items: flex-end; justify-content: center; gap: 4px; width: 100%; }
.an-ev img { width: min(56%, 230px); height: auto; filter: drop-shadow(0 14px 24px rgba(0,0,0,.5)); }
.an-thermo { width: 124px; height: auto; flex: none; overflow: visible; }
.an-thermo .tube { fill: #06080f; stroke: var(--line-strong); stroke-width: 2; }
.an-thermo .bulb { fill: var(--red); }
.an-thermo .merc { fill: var(--red); }
.an-thermo .tk { stroke: var(--dim); stroke-width: 2; }
.an-thermo .tl { font: 600 18px var(--mono); fill: var(--dim); text-anchor: end; }
.an-thermo g line { stroke-width: 3; }
.an-thermo g text { font: 700 18px var(--sans); }
.an-thermo .sea line { stroke: var(--dim); } .an-thermo .sea text { fill: var(--dim); }
.an-thermo .you { opacity: 0; } .an-thermo .you.on { opacity: 1; }
.an-thermo .you line { stroke: var(--gold); } .an-thermo .you text { fill: var(--gold); }
.an-thermo .real { opacity: 0; transition: opacity .4s; }
.an-thermo.shown .real { opacity: 1; }
.an-thermo .real line { stroke: var(--mint); } .an-thermo .real text { fill: var(--mint); }

/* the deal */
.an-deal { display: flex; justify-content: center; width: 100%; }
.an-pp { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: min(100%, 280px); padding: 18px 20px; border-radius: 18px; background: #f6efe2; box-shadow: 0 6px 0 #070a14; }
.an-pp .nm { font: 700 15px var(--sans); color: #3a3226; }
.an-pp s { font: 600 16px var(--mono); color: #7a7064; }
.an-pp b { font: 700 44px var(--mono); color: #1b1b1b; line-height: 1; }
.an-pp em { font-style: normal; font: 800 14px var(--sans); color: #fff; background: #c0392b; padding: 4px 10px; border-radius: 8px; }

@media (max-height: 700px) {
  .an-wheel svg { width: min(100%, 220px); }
  .an-ev img { width: min(48%, 170px); }
  .an-thermo { width: 112px; }
  .an-pp b { font-size: 36px; }
}
