/* Spec lessons (spec.js): the widgets' and boards' scenes. All rules under .ilc-*. */

/* A board fills a full() screen and holds its place from screen to screen. */
.ilc-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; width: 100%; box-sizing: border-box; }
.ilc-note { font-size: 12px; color: var(--faint); text-align: center; }

/* ---------- board.ledger: the investment pair, generalized ---------- */
.ilc-lg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; width: 100%; max-width: 360px; align-items: stretch; }
.ilc-lg-n3 { gap: 8px; max-width: 380px; }
.ilc-lg-arrow { grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.ilc-lg-to { font-style: normal; font-size: 24px; color: var(--dim); }
.ilc-lg-it { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 12px; border-radius: 18px; background: var(--surface); border: 2px solid var(--line); color: var(--text); font: inherit; overflow: hidden; cursor: default; -webkit-tap-highlight-color: transparent; transition: border-color .25s, box-shadow .25s, opacity .3s; }
.ilc-lg-it[data-nudge], .ilc-lg-it[data-tap="answer"] { cursor: pointer; }
.ilc-lg-it strong { font-size: 15px; font-weight: 800; line-height: 1.2; text-align: center; }
.ilc-lg-n3 .ilc-lg-it strong { font-size: 13.5px; }
.ilc-lg-sub { font-size: 12px; color: var(--dim); }
.ilc-lg-tag { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); padding: 3px 10px; border-radius: 999px; border: 1.5px solid var(--line-strong); white-space: nowrap; }
.ilc-lg-tag b { font: 700 14px var(--mono); color: var(--text); letter-spacing: 0; }
.ilc-lg-tag.ilc-s-fall { border-color: var(--violet-bright); background: rgba(123,92,253,.18); animation: ilcDrop .5s cubic-bezier(.3,1.5,.5,1) backwards; }
.ilc-lg-tag.ilc-s-fall b { color: var(--violet-bright); }
.ilc-lg-pic { position: relative; height: 140px; width: 100%; display: flex; align-items: center; justify-content: center; }
.ilc-lg-pic img { max-height: 140px; max-width: 100%; width: auto; filter: drop-shadow(0 10px 18px rgba(123,92,253,.28)); }
.ilc-lg-n3 .ilc-lg-pic { height: 104px; } .ilc-lg-n3 .ilc-lg-pic img { max-height: 104px; }
.ilc-lg-val { font-size: 13px; font-weight: 700; color: var(--dim); text-align: center; }
.ilc-lg-val b { display: inline-block; font: 700 20px var(--mono); color: var(--gold); }
.ilc-lg-noimg { padding: 12px 10px 14px; gap: 6px; }
.ilc-lg-noimg .ilc-lg-val b { font-size: 26px; display: block; }
.ilc-lg-hl { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(252,192,80,.25), 0 10px 28px rgba(252,192,80,.12); }
.ilc-s-none b { color: var(--dim) !important; }
.ilc-s-up b { animation: ilcPop .45s ease backwards; }
.ilc-s-pulse { animation: ilcPulse .4s ease; }
.ilc-s-shine .ilc-lg-pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.65) 50%, transparent 65%); background-size: 250% 100%; animation: ilcShine .7s ease both; pointer-events: none; }
.ilc-lg-it.ilc-s-right { border-color: var(--mint); box-shadow: 0 0 0 1px rgba(63,214,154,.35); }
.ilc-lg-it.ilc-s-wrong { border-color: var(--red); }
.ilc-lg-it:disabled { color: var(--text); opacity: 1; }
.ilc-drop { position: absolute; top: 18%; width: 22px; height: 22px; border-radius: 50%; animation: ilcFall .9s cubic-bezier(.5,0,.8,.4) backwards; pointer-events: none; z-index: 2; }
.ilc-t-red { background: radial-gradient(circle at 35% 35%, #ff8a8a, #d42a2a 60%, #8e1414); }
.ilc-t-gold { background: radial-gradient(circle at 35% 35%, #fff1b8, #fcc050 55%, #a8700f); }
.ilc-t-mint { background: radial-gradient(circle at 35% 35%, #c8ffe6, #3fd69a 55%, #127a52); }
.ilc-t-cyan { background: radial-gradient(circle at 35% 35%, #d6fbff, #45d4f0 55%, #12708a); }
.ilc-t-violet { background: radial-gradient(circle at 35% 35%, #e3dcff, #a99bff 55%, #5b45c8); }
.ilc-t-white { background: radial-gradient(circle at 35% 35%, #ffffff, #e6e2da 60%, #9c958a); }
.ilc-t-brown { background: radial-gradient(circle at 35% 35%, #f0c79a, #a8692f 55%, #5a3410); }
.ilc-chip { position: absolute; z-index: 3; transform: translate(-50%,-50%); padding: 3px 10px; border-radius: 999px; background: var(--gold); color: #1d1405; font: 700 14px var(--mono); font-style: normal; white-space: nowrap; pointer-events: none; box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.ilc-in .ilc-lg-it { animation: ilcRise .6s cubic-bezier(.3,1.3,.5,1) backwards; }
.ilc-in .ilc-lg-it:nth-child(2), .ilc-in .ilc-lg-to + .ilc-lg-it { animation-delay: .15s; }
.ilc-in .ilc-lg-it:nth-child(3) { animation-delay: .3s; }

/* ---------- board.conditions: the reciprocity rows, generalized ---------- */
.ilc-cd { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 8px; }
.ilc-cd-actor { display: flex; justify-content: center; margin-bottom: 4px; }
.ilc-cd-actor img { height: 150px; width: auto; filter: drop-shadow(0 10px 20px rgba(123,92,253,.3)); }
.ilc-cd-th { font: 700 12.5px var(--sans); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.ilc-cd-tr { display: grid; grid-template-columns: minmax(0, 118px) minmax(0, 1fr) 58px; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border-radius: 14px; background: var(--surface); border: 2px solid var(--line); color: var(--text); font: inherit; text-align: left; opacity: .45; transition: opacity .3s, border-color .25s; -webkit-tap-highlight-color: transparent; }
.ilc-cd-tr.on { opacity: 1; }
.ilc-cd-tr[data-nudge] { opacity: 1; border-color: var(--line-strong); cursor: pointer; }
.ilc-cd-tr.ilc-s-dim { opacity: .35; }
.ilc-cd-tr span { font: 700 13.5px var(--sans); line-height: 1.2; }
.ilc-cd-tr i { display: block; height: 12px; border-radius: 6px; background: rgba(234,227,215,.08); overflow: hidden; }
.ilc-cd-tr em { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--violet), var(--violet-bright)); box-shadow: 0 0 10px rgba(169,155,255,.45); }
.ilc-cd-tr b { font: 800 14.5px var(--sans); text-align: right; font-variant-numeric: tabular-nums; }
.ilc-cd-hl.on em { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); box-shadow: 0 0 12px rgba(252,192,80,.5); }
.ilc-cd-hl.on b { color: var(--gold); }
.ilc-cd-hl.on { border-color: rgba(252,192,80,.55); }
.ilc-cd-tr.ilc-s-right { border-color: var(--mint); }
.ilc-cd-tr.ilc-s-wrong { border-color: var(--red); }
.ilc-cd-tr:disabled { color: var(--text); }
.ilc-in .ilc-cd-tr { animation: ilcRise .5s cubic-bezier(.3,1.3,.5,1) backwards; }
.ilc-in .ilc-cd-tr:nth-of-type(2) { animation-delay: .08s; } .ilc-in .ilc-cd-tr:nth-of-type(3) { animation-delay: .16s; } .ilc-in .ilc-cd-tr:nth-of-type(4) { animation-delay: .24s; }

/* ---------- tally.crowd ---------- */
.ilc-tl { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.ilc-tl-grid { display: grid; gap: 4px; justify-content: center; }
.ilc-tl-grid i { display: block; aspect-ratio: 1; border-radius: 50%; background: rgba(234,227,215,.12); box-shadow: inset 0 0 0 1px rgba(234,227,215,.08); transition: background .25s, box-shadow .25s, transform .25s; }
.ilc-tl-grid i.on { background: radial-gradient(circle at 35% 30%, #fff1b8, var(--gold) 60%, var(--gold-deep)); box-shadow: 0 0 8px rgba(252,192,80,.45); transform: scale(1.08); }
.ilc-tl-leg { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; opacity: 0; transition: opacity .35s; }
.ilc-tl-leg.on { opacity: 1; }
.ilc-tl-leg span { font: 700 14px var(--sans); color: var(--dim); display: inline-flex; align-items: center; gap: 6px; }
.ilc-tl-leg span::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: rgba(234,227,215,.2); }
.ilc-tl-leg .ilc-tl-k { color: var(--gold); }
.ilc-tl-leg .ilc-tl-k::before { background: var(--gold); }

/* ---------- pictures: tell, pick, choose ---------- */
/* A picture screen is full(): the figure takes the room between copy and
   controls and the picture grows into it, up to a cap, never cropped. */
.ilc-fig, .ilc-photo { flex: 1 1 auto; min-height: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 14px 16px 22px; box-sizing: border-box; }
.ilc-fig img { flex: 0 1 auto; min-height: 0; width: 100%; max-width: 340px; height: auto; max-height: 44vh; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(123,92,253,.32)); }
.ilc-photo img { flex: 0 1 auto; min-height: 0; width: 100%; max-width: 380px; height: auto; max-height: 44vh; object-fit: cover; border-radius: 18px; box-shadow: 0 14px 30px rgba(0,0,0,.4), 0 0 0 1px var(--line); }
.ilc-fig img.ilc-ar-wide { max-width: 100%; }
.ilc-photo img.ilc-ar-wide { max-width: 100%; object-fit: contain; }
.ilc-photo img.ilc-ar-tall { width: auto; max-width: 100%; }
.ilc-fig figcaption, .ilc-photo figcaption { font-size: 12px; color: var(--dim); text-align: center; max-width: 340px; }

/* ---------- tap.objects, free ---------- */
.ilc-objs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; width: 100%; max-width: 360px; }
.ilc-obj { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 44px; padding: 10px 6px; border-radius: 18px; background: var(--surface); border: 2px solid var(--line); color: var(--text); font: inherit; -webkit-tap-highlight-color: transparent; transition: border-color .25s, transform .2s; }
.ilc-obj img { height: 96px; max-width: 100%; width: auto; filter: drop-shadow(0 8px 16px rgba(123,92,253,.3)); }
.ilc-obj strong { font-size: 14px; font-weight: 800; }
.ilc-obj-note { font: 700 13px var(--mono); color: var(--gold); min-height: 17px; opacity: 0; transition: opacity .3s; }
.ilc-obj.ilc-s-done { border-color: rgba(252,192,80,.6); animation: ilcPulse .4s ease; }
.ilc-obj.ilc-s-done .ilc-obj-note { opacity: 1; }

@keyframes ilcFall { from { transform: translateY(0); opacity: 1; } 85% { opacity: 1; } to { transform: translateY(150px); opacity: 0; } }
@keyframes ilcShine { from { background-position: 120% 0; } to { background-position: -20% 0; } }
@keyframes ilcPop { from { transform: scale(1.5); } to { transform: none; } }
@keyframes ilcPulse { 50% { transform: scale(1.05); } }
@keyframes ilcDrop { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ilcRise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-height: 700px) {
  .ilc-lg-pic { height: 118px; } .ilc-lg-pic img { max-height: 118px; }
  .ilc-lg-n3 .ilc-lg-pic { height: 88px; } .ilc-lg-n3 .ilc-lg-pic img { max-height: 88px; }
  .ilc-cd-actor img { height: 110px; }
  .ilc-cd { gap: 6px; }
  .ilc-cd-tr { min-height: 44px; padding: 4px 10px; }
  .ilc-obj img { height: 76px; }
}

/* ---------- ledger: fields that are words, and their labels ---------- */
.ilc-lg-lab { font-size: 13px; font-weight: 700; color: var(--dim); }
.ilc-lg-word .ilc-lg-lab { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ilc-lg-noimg .ilc-lg-val b { color: var(--text); }
.ilc-lg-noimg.ilc-lg-hl .ilc-lg-val b { color: var(--gold); }
.ilc-lg-val.ilc-lg-word b { font: 800 15px var(--sans); color: var(--text); line-height: 1.25; }
.ilc-lg-n1 { max-width: 300px; }
.ilc-lg-n1 .ilc-lg-it { padding: 12px 14px 14px; gap: 6px; }
.ilc-lg-n1 .ilc-lg-val.ilc-lg-word b { font-size: 18px; }

/* ---------- board.stage: toy objects on a sky ---------- */
.ilc-st { container-type: size; position: relative; width: 100%; max-width: 380px; max-height: 46vh; border-radius: 24px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(234,227,215,.1); }
.ilc-sky-night { background: radial-gradient(1.5px 1.5px at 12% 18%, #fff8 50%, transparent), radial-gradient(1px 1px at 70% 12%, #fffa 50%, transparent), radial-gradient(1.5px 1.5px at 84% 40%, #fcc05099 50%, transparent), radial-gradient(1px 1px at 32% 62%, #a99bff99 50%, transparent), radial-gradient(1px 1px at 55% 30%, #fff8 50%, transparent), radial-gradient(1.5px 1.5px at 22% 82%, #7fe7ff88 50%, transparent), radial-gradient(120% 90% at 50% 110%, #2a1f5c 0%, #121838 45%, #070a18 100%); }
.ilc-sky-dusk { background: radial-gradient(1px 1px at 20% 14%, #fff8 50%, transparent), radial-gradient(1px 1px at 76% 20%, #fff7 50%, transparent), linear-gradient(180deg, #1b1846 0%, #5b3a8c 48%, #e0806b 82%, #fcc050 100%); }
.ilc-sky-dawn { background: linear-gradient(180deg, #2b2a5e 0%, #8b6cc8 40%, #f3a6a0 75%, #ffe0a8 100%); }
.ilc-sky-day { background: linear-gradient(180deg, #3d7fd8 0%, #74b6f0 55%, #c9ecff 100%); }
.ilc-sky-none { background: var(--surface); }
.ilc-st-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The picture's width is the spec's w, in stage widths; the button around it never drops under 44px. */
.ilc-so { --w: 24; position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; cursor: default; -webkit-tap-highlight-color: transparent; transition: left .8s cubic-bezier(.4,0,.2,1), top .8s cubic-bezier(.4,0,.2,1), opacity .5s; }
.ilc-so[data-nudge], .ilc-so[data-tap="answer"] { cursor: pointer; }
.ilc-so-m { display: block; width: calc(var(--w) * 1cqw); transition: width 1.1s cubic-bezier(.4,0,.2,1); }
.ilc-so-m img { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 14px rgba(0,0,0,.4)); }
.ilc-so-l { font: 800 12.5px var(--sans); white-space: nowrap; padding: 2px 8px; border-radius: 999px; background: rgba(10,14,26,.72); box-shadow: 0 0 0 1px rgba(234,227,215,.14); }
.ilc-so-off { opacity: 0; pointer-events: none; }
.ilc-so.ilc-s-right .ilc-so-m img { filter: drop-shadow(0 0 10px rgba(63,214,154,.9)); }
.ilc-so.ilc-s-wrong .ilc-so-m img { filter: drop-shadow(0 0 10px rgba(216,85,85,.9)); }
.ilc-so.ilc-s-done .ilc-so-m img { filter: drop-shadow(0 0 12px rgba(252,192,80,.75)); }
.ilc-so:disabled { color: var(--text); }
.ilc-in .ilc-so { animation: ilcFadeIn .6s ease backwards; }

/* ---------- anim: on any picture ---------- */
.ilc-a-arrive { animation: ilcRise .6s cubic-bezier(.3,1.3,.5,1) backwards; }
.ilc-a-pulse { animation: ilcPulse .5s ease; }
.ilc-a-shake { animation: ilcShake .45s ease; }
.ilc-a-spin { animation: ilcSpin .8s cubic-bezier(.4,0,.2,1); }
.ilc-a-fade { animation: ilcFadeOut .8s ease forwards; }
.ilc-a-shrink { animation: ilcShrink 1.4s cubic-bezier(.5,0,.3,1) forwards; }
.ilc-a-grow { animation: ilcGrow 1.2s cubic-bezier(.3,1.2,.5,1) forwards; }
.ilc-a-late { animation-play-state: paused; }
.ilc-loop-bob .ilc-so-m, img.ilc-loop-bob { animation: ilcBob 2.4s ease-in-out infinite alternate; }
.ilc-loop-glow .ilc-so-m img, img.ilc-loop-glow { animation: ilcGlow 2s ease-in-out infinite alternate; }
.ilc-so.ilc-loop-orbit { animation: ilcOrbit 9s linear infinite; }
.ilc-so.ilc-loop-orbit > * { animation: ilcOrbitBack 9s linear infinite; }
img.ilc-loop-orbit { animation: ilcCircle 6s linear infinite; }
.ilc-s-out { opacity: 0; transition: opacity .18s; }
@keyframes ilcShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes ilcSpin { to { transform: rotate(360deg); } }
@keyframes ilcFadeOut { to { opacity: 0; } }
@keyframes ilcFadeIn { from { opacity: 0; } }
@keyframes ilcShrink { to { transform: scale(.18); } }
@keyframes ilcGrow { to { transform: scale(1.3); } }
@keyframes ilcBob { from { translate: 0 -4px; } to { translate: 0 4px; } }
@keyframes ilcGlow { from { filter: drop-shadow(0 0 4px rgba(252,192,80,.3)); } to { filter: drop-shadow(0 0 18px rgba(252,192,80,.85)); } }
@keyframes ilcOrbit { to { rotate: 360deg; } }
@keyframes ilcOrbitBack { to { rotate: -360deg; } }
@keyframes ilcCircle { from { transform: rotate(0deg) translateX(14px) rotate(0deg); } to { transform: rotate(360deg) translateX(14px) rotate(-360deg); } }

/* ---------- after: the picture a scene lands on ---------- */
.ilc-after img:not(.ilc-ar-wide) { max-width: 300px; }

/* ---------- tap.objects, free words ---------- */
.ilc-obj-word { justify-content: center; min-height: 64px; }
.ilc-obj-word strong { font-size: 15px; }

/* ---------- timeline ---------- */
.ilc-tm { width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ilc-tm-card { width: 100%; min-height: 150px; display: flex; align-items: center; justify-content: center; }
.ilc-tm-ev { display: flex; flex-direction: column; align-items: center; gap: 4px; animation: ilcRise .45s cubic-bezier(.3,1.3,.5,1) backwards; text-align: center; }
.ilc-tm-ev img { width: 220px; max-width: 80%; max-height: 28vh; object-fit: contain; filter: drop-shadow(0 14px 24px rgba(123,92,253,.35)); }
.ilc-tm-ev img.ilc-ar-wide { width: 100%; max-width: 100%; }
.ilc-tm-ev { width: 100%; }
.ilc-tm-ev b { font: 700 30px var(--serif); color: var(--gold); line-height: 1.1; }
.ilc-tm-ev span { font: 700 15px var(--sans); color: var(--text); max-width: 300px; }
.ilc-tm-track { position: relative; width: calc(100% - 44px); height: 52px; margin: 0 22px; touch-action: none; }
.ilc-tm-line { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 2px; background: rgba(234,227,215,.14); }
.ilc-tm-line em { display: block; height: 100%; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--violet), var(--gold)); transition: width .5s ease; }
.ilc-tm-dot { position: absolute; top: 0; transform: translateX(-50%); width: 44px; height: 52px; padding: 0; border: 0; background: none; color: var(--dim); font: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; -webkit-tap-highlight-color: transparent; }
.ilc-tm-dot::before { content: ''; width: 14px; height: 14px; margin-top: 7px; border-radius: 50%; background: var(--raised); box-shadow: 0 0 0 2px rgba(234,227,215,.25); transition: background .3s, box-shadow .3s, transform .3s; }
.ilc-tm-dot span { font: 700 12px var(--mono); white-space: nowrap; }
.ilc-tm-dot.on { color: var(--text); }
.ilc-tm-dot.on::before { background: var(--gold); box-shadow: 0 0 0 2px rgba(252,192,80,.4), 0 0 12px rgba(252,192,80,.6); }
.ilc-tm-dot.now::before { transform: scale(1.3); }

@media (max-height: 700px) {
  .ilc-st { max-height: 40vh; }
  .ilc-tm-card { min-height: 120px; }
  .ilc-tm-ev img { max-height: 19vh; }
  .ilc-tm-ev b { font-size: 26px; }
}

.ilc-objs-under { margin-top: 6px; }
.ilc-objs-under .ilc-obj img { height: 64px; }
@media (max-height: 700px) { .ilc-objs-under .ilc-obj img { height: 48px; } .ilc-objs-under .ilc-obj { padding: 6px 4px; } }

/* ---------- picture sizes: tell and moment ---------- */
.ilc-fig.ilc-large img { max-width: 380px; max-height: 44vh; }
.ilc-photo.ilc-large img { max-width: 100%; max-height: 46vh; }
.ilc-fig.ilc-wide, .ilc-photo.ilc-wide { flex: 1; justify-content: center; }
.ilc-fig.ilc-wide img { max-width: 100%; max-height: 50vh; }
.ilc-photo.ilc-wide img { max-width: none; width: 100%; max-height: 50vh; border-radius: 0; box-shadow: 0 1px 0 var(--line), 0 -1px 0 var(--line); }
.ilc-photo.ilc-wide figcaption, .ilc-fig.ilc-wide figcaption { padding: 0 16px; }
.moment.photo.ilc-mo-large .mo-photo, .moment.photo.ilc-mo-wide .mo-photo { max-height: 58%; }

/* ---------- ledger: stat fields (a small uppercase label over a big number) ---------- */
.ilc-lg-val.ilc-lg-stat { display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: 2px; }
.ilc-lg-stat .ilc-lg-lab { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.ilc-lg-val.ilc-lg-stat b { font: 700 30px/1.1 var(--mono); color: var(--gold); letter-spacing: -.01em; }
.ilc-lg-n3 .ilc-lg-val.ilc-lg-stat b { font-size: 24px; }
.ilc-lg-val.ilc-lg-stat.ilc-lg-word b { font: 800 17px/1.2 var(--sans); color: var(--text); }

/* ---------- dial.picture ---------- */
.ilc-dp-wrap { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; box-sizing: border-box; }
.ilc-dp { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1 / 1; max-height: 40vh; }
.ilc-dp-sky { border-radius: 24px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(234,227,215,.1); max-width: 380px; aspect-ratio: 4 / 3; }
.ilc-dp-l { position: absolute; left: 7%; top: 7%; width: 86%; height: 86%; object-fit: contain; transform-origin: 50% 50%; filter: drop-shadow(0 12px 22px rgba(123,92,253,.32)); will-change: transform, opacity; }
.ilc-dp-sky .ilc-dp-l { filter: drop-shadow(0 0 18px rgba(127,231,255,.25)); }
.ilc-ro { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 4px 22px; min-height: 52px; }
.ilc-ro-s { display: flex; flex-direction: column; align-items: center; }
.ilc-ro-s small { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.ilc-ro-s b { font: 700 28px/1.1 var(--mono); color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ilc-ro-cap { flex-basis: 100%; text-align: center; font: 800 15px var(--sans); color: var(--text); min-height: 20px; }
.ilc-ro-cap.ilc-s-up { animation: ilcPop .4s ease; }
.ilc-st-live .ilc-so, .ilc-st-live .ilc-so-m { transition: none; }
/* A readout over a stage costs it the readout's height. */
.ilc-wrap:has(> .ilc-ro) .ilc-st { max-height: 38vh; }
@media (max-height: 700px) { .ilc-wrap:has(> .ilc-ro) .ilc-st { max-height: 32vh; } }

/* ---------- chat ---------- */
.ilc-ch { width: 100%; max-width: 360px; display: flex; flex-direction: column; border-radius: 22px; background: linear-gradient(180deg, var(--raised), var(--surface)); box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0,0,0,.35); overflow: hidden; }
.ilc-ch-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(10,14,26,.35); }
.ilc-ch-head strong { font-size: 14px; font-weight: 800; }
.ilc-ch-faces { display: flex; }
.ilc-ch-faces .ilc-ch-av + .ilc-ch-av { margin-left: -8px; }
.ilc-ch-av { --h: 262; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font: 800 13px var(--sans); color: #fff; background: radial-gradient(circle at 35% 30%, hsl(var(--h),90%,74%), hsl(var(--h),70%,48%) 60%, hsl(var(--h),70%,28%)); box-shadow: 0 0 0 2px var(--raised); }
.ilc-ch-av img { width: 100%; height: 100%; object-fit: cover; }
.ilc-ch-gap { visibility: hidden; }
.ilc-ch-list { display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; max-height: 38vh; overflow: hidden; padding: 10px 12px 12px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px); mask-image: linear-gradient(to bottom, transparent 0, #000 22px); }
.ilc-ch-feed { display: flex; flex-direction: column; gap: 6px; }
.ilc-ch-row { display: flex; align-items: flex-end; gap: 6px; animation: ilcBub .32s cubic-bezier(.34,1.56,.64,1) both; }
.ilc-ch-row.cont { margin-top: -3px; }
.ilc-ch-row.me { justify-content: flex-end; }
.ilc-ch-msg { max-width: 80%; padding: 8px 12px; border-radius: 18px; border-bottom-left-radius: 5px; background: rgba(234,227,215,.09); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; line-height: 1.32; }
.ilc-ch-msg small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--violet-bright); margin-bottom: 1px; }
.ilc-ch-row.me .ilc-ch-msg { background: linear-gradient(160deg, var(--violet-bright), var(--violet) 55%, var(--violet-deep)); color: #fff; box-shadow: 0 6px 14px rgba(123,92,253,.3); border-bottom-left-radius: 18px; border-bottom-right-radius: 5px; }
.ilc-ch-typing .ilc-ch-msg { display: flex; gap: 4px; padding: 11px 13px; }
.ilc-ch-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); animation: ilcDot 1s ease-in-out infinite; }
.ilc-ch-typing i:nth-child(2) { animation-delay: .15s; } .ilc-ch-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ilcBub { from { opacity: 0; transform: translateY(10px) scale(.92); } }
@keyframes ilcDot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---------- compare ---------- */
.ilc-cmp { width: 100%; max-width: 380px; padding: 0 16px; box-sizing: border-box; }
.ilc-cmp-f { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 46vh; border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0,0,0,.4); touch-action: none; }
.ilc-cmp-f img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ilc-cmp-edge { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(252,192,80,.7); pointer-events: none; font-style: normal; }
.ilc-cmp-edge b { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6d8, var(--gold) 60%, var(--gold-deep)); box-shadow: 0 4px 12px rgba(0,0,0,.45), 0 0 0 3px rgba(255,255,255,.85); }
.ilc-cmp-edge b::before, .ilc-cmp-edge b::after { content: ''; position: absolute; top: 50%; margin-top: -6px; border: 6px solid transparent; }
.ilc-cmp-edge b::before { left: 4px; border-right: 8px solid #2a1b00; border-left: 0; }
.ilc-cmp-edge b::after { right: 4px; border-left: 8px solid #2a1b00; border-right: 0; }
.ilc-cmp-l { position: absolute; top: 12px; padding: 4px 11px; border-radius: 999px; background: rgba(10,14,26,.78); box-shadow: 0 0 0 1px rgba(234,227,215,.18); font: 800 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text); white-space: nowrap; pointer-events: none; transition: opacity .25s; }
.ilc-cmp-la { left: 12px; } .ilc-cmp-lb { right: 12px; }
.ilc-cmp-in { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.ilc-cmp-f { cursor: ew-resize; }

/* ---------- drag.to ---------- */
.ilc-dt { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 18px; padding: 8px 16px 6px; box-sizing: border-box; }
.ilc-dt-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; width: 100%; max-width: 360px; }
.ilc-dt-n1 { max-width: 220px; }
.ilc-dt-tg { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 120px; padding: 12px 8px; border-radius: 22px; background: rgba(234,227,215,.04); border: 2px dashed var(--line-strong); color: var(--text); font: inherit; -webkit-tap-highlight-color: transparent; transition: border-color .2s, background .2s, transform .2s; }
.ilc-dt-tg img { height: 110px; max-width: 100%; width: auto; filter: drop-shadow(0 8px 16px rgba(123,92,253,.3)); }
.ilc-dt-tg strong { font-size: 14px; font-weight: 800; line-height: 1.2; text-align: center; }
.ilc-dt-word { min-height: 96px; }
.ilc-dt-word strong { font-size: 16px; }
.ilc-dt-tg.ilc-dt-over, .ilc-lg-it.ilc-dt-over { border-style: solid; border-color: var(--gold); background: rgba(252,192,80,.1); transform: scale(1.04); }
.ilc-so.ilc-dt-over .ilc-so-m img { filter: drop-shadow(0 0 14px rgba(252,192,80,.9)); }
.ilc-dt-tg.ilc-s-done { border-style: solid; border-color: var(--gold); box-shadow: 0 0 0 1px rgba(252,192,80,.3), 0 0 24px rgba(252,192,80,.25); animation: ilcPulse .4s ease; }
.ilc-dt-tg.ilc-s-right { border-style: solid; border-color: var(--mint); box-shadow: 0 0 0 1px rgba(63,214,154,.35); }
.ilc-dt-tg.ilc-s-wrong { border-style: solid; border-color: var(--red); }
.ilc-dt-tg:disabled { color: var(--text); opacity: 1; }
.ilc-dt-home { display: flex; justify-content: center; width: 100%; padding-top: 4px; }
.ilc-wrap > .ilc-dt-home { padding-top: 10px; }
.ilc-dt-item { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 96px; min-height: 96px; padding: 10px 14px; border-radius: 22px; border: 2px solid rgba(252,192,80,.55); background: radial-gradient(120% 100% at 50% 0%, rgba(252,192,80,.16), var(--surface) 70%); color: var(--text); font: inherit; touch-action: none; cursor: grab; box-shadow: 0 5px 12px rgba(0,0,0,.35); -webkit-tap-highlight-color: transparent; animation: ilcBob 2.2s ease-in-out infinite alternate; }
.ilc-dt-item img { height: 84px; width: auto; max-width: 140px; pointer-events: none; filter: drop-shadow(0 8px 14px rgba(0,0,0,.4)); }
.ilc-dt-item strong { font-size: 13.5px; font-weight: 800; pointer-events: none; }
.ilc-dt-lift, .ilc-dt-fly { animation: none; cursor: grabbing; box-shadow: 0 8px 16px rgba(0,0,0,.45), 0 0 0 2px var(--gold); }
.ilc-dt-picked { animation: none; box-shadow: 0 0 0 3px var(--gold), 0 0 28px rgba(252,192,80,.45); }
.ilc-dt-item:disabled { color: var(--text); opacity: 1; }

/* ---------- photo.missing ---------- */
.ilc-pm { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 16px; box-sizing: border-box; }
.ilc-pm-f { position: relative; display: inline-block; max-width: 100%; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 30px rgba(0,0,0,.4), 0 0 0 1px var(--line); line-height: 0; }
.ilc-pm-img { display: block; max-width: 100%; max-height: 38vh; width: auto; height: auto; }
.ilc-pm-hole { position: absolute; display: grid; place-items: center; border-radius: 10px; background: repeating-linear-gradient(135deg, #141a2c 0 8px, #1a2136 8px 16px); box-shadow: inset 0 0 0 2px var(--gold), 0 0 18px rgba(252,192,80,.35); transition: opacity .5s; }
.ilc-pm-hole i { font: 700 28px/1 var(--serif); font-style: normal; color: var(--gold); text-shadow: 0 0 12px rgba(252,192,80,.6); }
.ilc-pm-ring { position: absolute; border-radius: 10px; box-shadow: inset 0 0 0 2px var(--gold), 0 0 22px rgba(252,192,80,.55); opacity: 0; transition: opacity .5s; pointer-events: none; }
.ilc-pm-ring.on { opacity: 1; }
.ilc-pm-off { opacity: 0 !important; }
.ilc-pm-pcs { --ar: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; width: 100%; max-width: 360px; }
.ilc-pm-pc { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px; border-radius: 16px; background: var(--surface); border: 2px solid var(--line); color: var(--text); font: inherit; line-height: 1.2; -webkit-tap-highlight-color: transparent; transition: border-color .25s, opacity .3s; }
.ilc-pm-art { display: block; width: 100%; max-height: 110px; aspect-ratio: var(--ar); border-radius: 10px; background-repeat: no-repeat; overflow: hidden; }
.ilc-pm-art img { width: 100%; height: 100%; object-fit: contain; }
.ilc-pm-words .ilc-pm-pc { min-height: 64px; padding: 10px 8px; }
.ilc-pm-pc strong { font-size: 14px; font-weight: 800; text-align: center; }
.ilc-pm-pc.ilc-s-right { border-color: var(--mint); } .ilc-pm-pc.ilc-s-wrong { border-color: var(--red); }
.ilc-pm-pc:disabled { color: var(--text); }
.ilc-pm-used { opacity: .35; }
.ilc-pm-ghost { position: absolute; z-index: 3; padding: 0; border-radius: 10px; border: 0; overflow: hidden; box-shadow: 0 10px 24px rgba(0,0,0,.45); transition: opacity .5s, box-shadow .25s; }
.ilc-pm-ghost .ilc-pm-art { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; border-radius: 0; }
.ilc-pm-gw { background: rgba(10,14,26,.9); padding: 4px; }
.ilc-pm-gw strong { font-size: 12px; line-height: 1.15; }
.ilc-pm-ghost.ilc-s-right { box-shadow: inset 0 0 0 3px var(--mint), 0 0 22px rgba(63,214,154,.5); }
.ilc-pm-ghost.ilc-s-wrong { box-shadow: inset 0 0 0 3px var(--red); }

@media (max-height: 700px) {
  .ilc-dt-tg { min-height: 96px; } .ilc-dt-tg img { height: 80px; }
  .ilc-dt-item { min-height: 80px; } .ilc-dt-item img { height: 62px; }
  .ilc-ch-list { min-height: 160px; max-height: 34vh; }
  .ilc-ro-s b { font-size: 24px; }
  .ilc-dp { max-height: 26vh; }
  .ilc-pm-img { max-height: 32vh; } .ilc-pm-art { max-height: 84px; }
}

/* ---------- sizes that grow with the room (the art pass, 2026-11) ----------
   A single-silhouette prop reads from about 96px; a board's pictures and a
   timeline's card take what the screen has, up to a cap. */
.ilc-lg-pic { height: clamp(112px, 21vh, 180px); } .ilc-lg-pic img { max-height: 100%; }
.ilc-lg-n3 .ilc-lg-pic { height: clamp(92px, 15vh, 130px); } .ilc-lg-n3 .ilc-lg-pic img { max-height: 100%; }
.ilc-obj img { height: clamp(96px, 15vh, 130px); }
.ilc-objs-under .ilc-obj img { height: clamp(60px, 10vh, 96px); }
.ilc-tm { flex: 1 1 auto; min-height: 0; justify-content: center; padding: 0 16px; box-sizing: border-box; max-width: 392px; }
.ilc-tm-card { flex: 1 1 auto; min-height: 150px; }
.ilc-tm-ev { padding: 12px 0; }
.ilc-tm-ev img { max-height: 32vh; }

/* drag.to under a board: one band, the item then its targets */
.ilc-dt-tray { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 380px; margin-top: 6px; }
.ilc-dt-tray .ilc-dt-home { width: auto; padding: 0; flex: none; }
.ilc-dt-tray .ilc-dt-row { flex: 1 1 auto; width: auto; max-width: 240px; gap: 8px; }
.ilc-dt-to { font-style: normal; font-size: 22px; color: var(--dim); flex: none; }
.ilc-dt-tray .ilc-dt-item { min-width: 88px; min-height: 88px; padding: 8px 10px; }
.ilc-dt-tray .ilc-dt-item img { height: 60px; }
.ilc-dt-tray .ilc-dt-tg { min-height: 88px; padding: 8px 6px; border-radius: 18px; }
.ilc-dt-tray .ilc-dt-tg img { height: 56px; }
.ilc-dt-tray .ilc-dt-tg strong { font-size: 13px; }
.ilc-wrap:has(> .ilc-dt-tray) .ilc-lg-pic { height: clamp(96px, 17vh, 150px); }
.ilc-dt-tray { padding-bottom: 18px; }

/* Own-scene widgets on a full() screen sit in the middle of the room. */
.ilc-pm, .ilc-dt { flex: 1 1 auto; min-height: 0; justify-content: center; }
.ilc-dt { justify-content: space-evenly; }
.ilc-cmp { margin: auto; }
.ilc-ch { margin: auto; width: calc(100% - 32px); }
.ilc-dp { padding: 12px 0; box-sizing: border-box; }
.ilc-dp-l { filter: drop-shadow(0 8px 12px rgba(123,92,253,.3)); }

/* The scene in play, echoed under a pick or sort with none of its own: read-only, and smaller than
   when it was the screen, since the question's options now share the room. Over a sort's card, smaller still. */
.ilc-echo { pointer-events: none; }
.ilc-wrap.ilc-echo { zoom: .8; }
.ilc-echo-sm { flex: 0 0 auto; padding-top: 0; padding-bottom: 6px; }
.ilc-wrap.ilc-echo-sm { zoom: .7; }
.ilc-echo-sm img, .ilc-echo-sm img.ilc-ar-wide { width: auto; max-width: 100%; max-height: 22vh; object-fit: contain; }
