/* Infinite scrolling lesson. All rules scoped under .isc-* */

/* the phone: the cut's look (infinite-scrolling-first.css), at the scene's height, with a rail you can see without looking away */
.isc-phone { width: 100%; max-width: 330px; margin: 0 auto; border-radius: 26px; background: #0E1322; border: 1px solid var(--line-strong); padding: 8px 8px 10px; box-shadow: 0 4px 10px rgba(0,0,0,.3); }
.isc-bar { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 10px 8px; font-size: 13px; font-weight: 700; color: var(--dim); }
.isc-bar b { font-size: 15px; color: var(--text); }
.isc-n { display: inline-block; min-width: 2ch; font-style: normal; font-family: var(--mono); font-size: 16px; color: var(--gold); text-align: right; font-variant-numeric: tabular-nums; }
.isc-bump { animation: iscBump .45s backwards; }
@keyframes iscBump { 40% { transform: scale(1.35); } }
.isc-win { position: relative; }
.isc-feed { position: relative; height: clamp(210px, calc(100vh - 470px), 360px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding-right: 20px; touch-action: pan-y; -webkit-overflow-scrolling: touch; border-radius: 16px; }
.isc-feed::-webkit-scrollbar { display: none; }
.isc-rail { position: absolute; right: 1px; top: 0; bottom: 0; width: 12px; border-radius: 6px; background: rgba(234, 227, 215, .12); }
.isc-rail i { position: absolute; left: 0; right: 0; border-radius: 6px; background: var(--gold); transition: height .25s, top .08s; }
.isc-rail i.isc-jump { animation: iscJump .7s backwards; }
@keyframes iscJump { 0% { box-shadow: 0 0 0 0 rgba(252, 192, 80, .9); } 40% { box-shadow: 0 0 0 5px rgba(252, 192, 80, .35); } 100% { box-shadow: 0 0 0 0 rgba(252, 192, 80, 0); } }

/* a post */
.isc-post { padding: 9px; margin-bottom: 8px; border-radius: 14px; background: var(--raised); }
.isc-old { opacity: .5; }
.isc-ph { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; font-size: 13px; white-space: nowrap; }
.isc-ph i { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.isc-ph b { font-weight: 700; color: var(--text); overflow: hidden; }
.isc-ph span { color: var(--faint); }
.isc-tx { margin: 2px 2px 8px; font-size: 15px; line-height: 1.3; color: var(--text); }
.isc-pic { position: relative; height: 128px; border-radius: 10px; overflow: hidden; margin-bottom: 7px; background: linear-gradient(135deg, var(--a), var(--b)); }
.isc-pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.isc-pic.photo img { object-fit: cover; }
.isc-pic.toy img { object-fit: contain; padding: 10px; filter: drop-shadow(0 8px 12px rgba(0,0,0,.35)); }
.isc-pic.toy { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--a) 55%, #1A2136), #141a2c 75%); }
.isc-vid { background: linear-gradient(160deg, color-mix(in srgb, var(--a) 70%, #000), color-mix(in srgb, var(--b) 40%, #000)); }
.isc-vid i { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(0,0,0,.45); }
.isc-vid i::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.isc-vid span { position: absolute; right: 8px; bottom: 7px; font: 600 12px var(--mono); color: #fff; background: rgba(0,0,0,.5); border-radius: 5px; padding: 1px 5px; }
.isc-sun { background: radial-gradient(circle at 50% 78%, #FFE2A0 0 16%, transparent 17%), linear-gradient(#FB9679, #E0569B 55%, #3A2A6B); }
.isc-sea { background: linear-gradient(transparent 58%, #1E5FA8 58%, #0F3A70), radial-gradient(circle at 70% 30%, #fff 0 9%, transparent 10%), linear-gradient(#8FD3FF, #CDEBFF 58%); }
.isc-city { background: linear-gradient(90deg, transparent 8%, #232a4a 8% 20%, transparent 20% 26%, #2c345a 26% 40%, transparent 40% 46%, #1d2442 46% 63%, transparent 63% 70%, #2a3156 70% 88%, transparent 88%) bottom / 100% 62% no-repeat, linear-gradient(#5B45C8, #F160C4); }
.isc-hill { background: radial-gradient(ellipse 70% 50% at 30% 100%, #2F9E6E 98%, transparent), radial-gradient(ellipse 60% 42% at 80% 100%, #3FD69A 98%, transparent), linear-gradient(#4FA3F7, #BFE6FF); }
.isc-pf { display: flex; gap: 16px; padding: 0 2px; font-size: 12px; font-weight: 600; color: var(--dim); }
.isc-pf span { display: inline-flex; align-items: center; gap: 4px; }
.isc-pf svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

/* where each batch was added: hidden while scrolling, shown with the answer */
.isc-seam { display: none; }
.isc-seen .isc-seam { display: block; margin: 2px 0 10px; padding: 6px 0 0; border-top: 2px dashed var(--gold); font-size: 12px; font-weight: 700; color: var(--gold); text-align: center; }

.isc-cue { display: grid; justify-items: center; gap: 4px; padding: 14px 8px 12px; margin: 4px 0 10px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); text-align: center; }
.isc-cue i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 18px; color: var(--mint); box-shadow: inset 0 0 0 2px var(--mint); }
.isc-cue b { font-size: 15px; }
.isc-cue span { font-size: 12px; color: var(--dim); }
.isc-oldh { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px 4px; }

/* the soup test */
.isc-soupsvg { width: 100%; max-height: 300px; }
.isc-soup { fill: #E0873A; }
.isc-bowl { fill: none; stroke: var(--text); stroke-width: 4; stroke-linecap: round; }
.isc-rim { stroke: var(--text); stroke-width: 2; opacity: .35; }
.isc-tube { fill: none; stroke: #E0873A; stroke-width: 4; stroke-dasharray: 6 4; opacity: .8; }
.isc-pot { fill: #E0873A; fill-opacity: .6; stroke: #E0873A; stroke-width: 2; }
.isc-cap { font-size: 15px; font-weight: 700; text-anchor: middle; fill: var(--text); }
.isc-cnt { font-size: 15px; font-weight: 800; text-anchor: middle; fill: var(--gold); font-family: var(--mono); }
.isc-stop { font-size: 15px; font-weight: 800; text-anchor: middle; fill: var(--mint); opacity: 0; }
.isc-stop.on { opacity: 1; transition: opacity .25s; }
.isc-felt { font-size: 15px; font-weight: 700; text-anchor: middle; fill: var(--violet); opacity: 0; }
.isc-felt.on { opacity: 1; transition: opacity .3s; }

/* the week of phones */
.isc-study { width: 100%; display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 8px; }
.isc-sc { grid-column: 1 / -1; font-size: 13px; font-weight: 700; color: var(--dim); text-align: center; }
.isc-st { display: grid; align-content: center; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; background: var(--raised); text-align: center; }
.isc-st b { font-size: 22px; font-weight: 800; color: var(--gold); }
.isc-st span { font-size: 12px; color: var(--dim); line-height: 1.25; }
.isc-out { opacity: 0; }
.isc-out.on { opacity: 1; transition: opacity .3s; }
.isc-few { border: 1px solid rgba(252, 192, 80, .45); }
.isc-why { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.isc-why i { font-style: normal; font-size: 13px; padding: 6px 10px; border-radius: 999px; background: rgba(63, 214, 154, .14); color: var(--mint); }

@media (max-height: 700px) {
  .isc-pic { height: 100px; }
  .isc-soupsvg { max-height: 230px; }
}
