/* Goal setting lesson. All rules scoped under .gls-* */

.gls-sc { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gls-note { font-size: 13px; color: var(--dim); text-align: center; max-width: 300px; }
.gls-hero img { display: block; width: 290px; max-width: 100%; max-height: 30vh; object-fit: contain; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(123,92,253,.3)); }
.gls-hero.art img { width: 300px; max-height: 36vh; }
.gls-hero.small img { max-height: 16vh; }
@media (max-height: 700px) { .gls-hero.small img { max-height: 12vh; } }

/* the dot game */
.gls-game { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 8px; }
.gls-hud { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); }
.gls-hud b { font: 800 22px var(--mono); color: var(--text); margin-left: 6px; }
.gls-goal b { color: var(--gold); }
.gls-prog { position: relative; height: 12px; border-radius: 6px; background: var(--raised); border: 1px solid var(--line); overflow: visible; }
.gls-prog i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--violet-bright); transition: width .12s; }
.gls-prog em { position: absolute; top: -5px; width: 3px; height: 20px; margin-left: -3px; background: var(--gold); border-radius: 2px; }
.gls-game.hit .gls-prog i { background: var(--mint); }
.gls-arena { position: relative; height: 210px; border-radius: 18px; background: var(--surface); border: 2px solid var(--line-strong); overflow: hidden; }
.gls-time { position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--raised); }
.gls-time i { display: block; height: 100%; width: 100%; background: var(--gold); }
.gls-dot { position: absolute; width: 56px; height: 56px; margin: 0; padding: 0; border-radius: 50%; border: 3px solid #fff3; background: radial-gradient(circle at 35% 30%, #b6a4ff, var(--violet-bright) 60%, #4b33b8); box-shadow: 0 6px 16px rgba(123,92,253,.45); cursor: pointer; opacity: .35; pointer-events: none; }
.gls-game.live .gls-dot { opacity: 1; pointer-events: auto; }
.gls-game.live .gls-dot:active { transform: scale(.9); }
.gls-game.over .gls-arena { opacity: .6; }
@media (max-height: 700px) { .gls-arena { height: 180px; } }

/* no line */
.gls-verdict { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 30px; border-radius: 20px; background: var(--surface); border: 2px dashed var(--line-strong); }
.gls-verdict small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.gls-verdict b { font: 800 26px var(--mono); }
.gls-verdict span { font-size: 14px; font-weight: 800; color: var(--mint); text-transform: uppercase; letter-spacing: .06em; }

/* two numbers side by side */
.gls-two, .gls-crews { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 340px; }
.gls-two div, .gls-crews div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.gls-two small, .gls-crews small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); }
.gls-two b, .gls-crews b { font: 800 24px var(--mono); }
.gls-crews span { font-size: 13px; color: var(--dim); }
.gls-crews div.wide { grid-column: 1 / -1; border-color: var(--red); }

/* truck loads */
.gls-load { width: 100%; max-width: 330px; display: flex; flex-direction: column; gap: 10px; }
.gls-lr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.gls-lr span { font-size: 14px; font-weight: 700; color: var(--dim); }
.gls-lr b { font: 800 16px var(--mono); }
.gls-lt { grid-column: 1 / -1; grid-row: 2; position: relative; height: 14px; border-radius: 7px; background: var(--raised); border: 1px solid var(--line); }
.gls-lt i { display: block; height: 100%; width: 0; border-radius: 7px; background: var(--violet-bright); transition: width .9s cubic-bezier(.2,.8,.2,1); }
.gls-lt em { position: absolute; left: 94%; top: -4px; width: 3px; height: 20px; margin-left: -1px; background: var(--gold); border-radius: 2px; }
.gls-load.base .gls-lr:first-child i { width: var(--w); }
.gls-load.on .gls-lr.q i { width: var(--w); background: var(--mint); }
.gls-lr.q b { color: var(--mint); }

/* four ways */
.gls-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 340px; }
.gls-ways div { display: flex; flex-direction: column; gap: 4px; padding: 14px 12px; border-radius: 16px; background: var(--surface); border: 2px solid var(--gold); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.gls-ways div.in { opacity: 1; transform: none; }
.gls-ways b { font-size: 17px; color: var(--gold); }
.gls-ways span { font-size: 14px; color: var(--text); line-height: 1.3; }

/* three goals */
.gls-three { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 320px; }
.gls-three div { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.gls-three b { font-size: 16px; }
