/* The product inside the windows: LumiLearn's own look (globals.css of the app): warm paper ground,
   ink outlines with a hard offset shadow, amber actions, Baloo 2 headings, Nunito Sans text,
   Noto Sans Armenian for Armenian. Every rule here draws the LAST frame of a demo; demos.js
   rewinds it to the first frame and plays it. Without JS the last frame is what shows. */

.stage, .hero-app {
  --a-ground: #FFF8F0; --a-ground-2: #FFF1DD; --a-paper: #FFFFFF;
  --a-ink: #1F1A17; --a-ink-2: #4B4440; --a-mute: #675E58; --a-edge: #1F1A17;
  --a-amber: #FFB955; --a-amber-soft: #FFE6BF; --a-deep: #B4441A;
}
.app {
  position: absolute; inset: 0; display: grid; grid-template-columns: 52px minmax(0, 1fr);
  background: var(--a-ground); color: var(--a-ink);
  font: 400 13px/1.45 "Nunito Sans", system-ui, sans-serif;
  font-variant-numeric: tabular-nums; text-align: left;
}
.app [lang="hy"] { font-family: "Noto Sans Armenian", "Nunito Sans", sans-serif; }
.app b { font-weight: 700; }
.a-rail { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 16px; border-right: 1.5px solid var(--a-edge); }
.a-rail img { margin-bottom: 8px; }
.a-rail i { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid transparent; background: center / 16px no-repeat; opacity: .62; }
.a-rail i:nth-of-type(1) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231F1A17' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M2.5 3.5h4a1.5 1.5 0 0 1 1.5 1.5v8a1.5 1.5 0 0 0-1.5-1.5h-4zM13.5 3.5h-4A1.5 1.5 0 0 0 8 5v8a1.5 1.5 0 0 1 1.5-1.5h4z'/%3E%3C/svg%3E"); }
.a-rail i:nth-of-type(2) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231F1A17' stroke-width='1.5' stroke-linecap='round'%3E%3Crect x='2.5' y='3.5' width='11' height='10' rx='1.5'/%3E%3Cpath d='M2.5 6.5h11M5.5 2v3M10.5 2v3'/%3E%3C/svg%3E"); }
.a-rail i:nth-of-type(3) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231F1A17' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M3 4h1.5M3 8h1.5M3 12h1.5M7 4h6M7 8h6M7 12h6'/%3E%3C/svg%3E"); }
.a-rail i:nth-of-type(4) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231F1A17' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M8 2.5a2 2 0 0 0-2 2V8a2 2 0 0 0 4 0V4.5a2 2 0 0 0-2-2ZM4.5 7.5a3.5 3.5 0 0 0 7 0M8 11v2.5'/%3E%3C/svg%3E"); }
.a-rail i.on { opacity: 1; border-color: var(--a-edge); background-color: var(--a-amber); box-shadow: 2px 2px 0 var(--a-edge); }
.a-main { position: relative; min-width: 0; padding: 18px 20px; overflow: hidden; }

.a-h { font: 700 22px/1.15 "Baloo 2", "Nunito Sans", sans-serif; letter-spacing: -.01em; }
.a-mute { color: var(--a-mute); }
.a-label { font-size: 10.5px; line-height: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--a-mute); }
.a-card { background: var(--a-paper); border: 1.5px solid var(--a-edge); border-radius: 14px; box-shadow: 3px 3px 0 var(--a-edge); }
.a-row-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.a-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 1.5px solid var(--a-edge); border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--a-paper); white-space: nowrap; }
.a-pill--ok { background: #DCFCE7; color: #14532D; }
.a-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border: 1px solid rgba(31, 26, 23, .35); border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--a-ink-2); white-space: nowrap; background: var(--a-paper); }
.a-tag--on { border-color: var(--a-edge); background: var(--a-amber-soft); color: var(--a-ink); }
.a-tag--tg { border-color: #2F6FA8; color: #1E4E78; background: #E8F3FC; }
.a-tone { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid currentColor; font-size: 11px; font-weight: 700; white-space: nowrap; }
.a-tone--neg { color: #B42318; background: #FEECEB; }
.a-tone--neu { color: #475467; background: #F2F4F7; }
.a-tone--ok { color: #166534; background: #DCFCE7; }
.a-tone--good { color: #0B5A8A; background: #E3F2FD; }
.a-tone--mid { color: #92400E; background: #FEF3C7; }
.a-tone--lock { color: var(--a-mute); background: #F3EDE6; }
.a-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 16px; border: 1.5px solid var(--a-edge); border-radius: 999px; background: var(--a-paper); font-weight: 700; font-size: 13px; box-shadow: 2px 2px 0 var(--a-edge); white-space: nowrap; }
.a-btn--amber { background: var(--a-amber); }
.a-btn--ghost { box-shadow: none; border-color: rgba(31, 26, 23, .35); }
.a-btn--sm { height: 28px; padding: 0 12px; font-size: 12px; }
.a-btn.is-press { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--a-edge); }
.a-bar { display: block; height: 6px; border-radius: 3px; background: #F1E6D8; overflow: hidden; }
.a-bar i { display: block; height: 100%; border-radius: 3px; background: var(--a-amber); transform-origin: 0 50%; transform: scaleX(var(--v, 1)); }
.a-prog { display: block; height: 3px; border-radius: 2px; background: #F1E6D8; overflow: hidden; opacity: 0; }
.a-prog i { display: block; height: 100%; background: var(--a-ink); transform-origin: 0 50%; }
.a-check { position: relative; flex: none; width: 16px; height: 16px; border: 1.5px solid var(--a-edge); border-radius: 4px; background: var(--a-paper); }
.a-check.is-on { background: var(--a-amber); }
.a-check.is-on::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid var(--a-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.a-field { display: flex; align-items: center; height: 30px; padding: 0 10px; border: 1.5px solid var(--a-edge); border-radius: 10px; background: var(--a-paper); font-weight: 600; }

/* layers that are gone by the last frame: out of the page until the timeline shows them
   (demos.js lifts this for one synchronous measuring pass while it builds a timeline) */
.stage:not(.is-measuring) [data-final-hidden]:not(.is-live) { display: none; }

/* ---------- pointer ---------- */
.ptr { position: absolute; left: 0; top: 0; z-index: 30; width: 20px; height: 22px; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(31, 26, 23, .25)); }
.ring { position: absolute; left: -14px; top: -14px; z-index: 29; width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(31, 26, 23, .5); opacity: 0; pointer-events: none; }
[data-demo="lumiplay"] .ring { border-color: rgba(255, 255, 255, .6); }
html:not(.demos-on) .ptr { display: none; }

/* ---------- LumiSpeech ---------- */
[data-demo="lumispeech"] .view { --sh-n: 700; }
.ls-scr { position: absolute; inset: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.ls-up { opacity: 0; }
.ls-up-head { display: grid; gap: 2px; }
.ls-drop { position: relative; height: 176px; border: 2px dashed rgba(31, 26, 23, .35); border-radius: 16px; background: var(--a-paper); transition: border-color .2s cubic-bezier(.22, 1, .36, 1), background-color .2s cubic-bezier(.22, 1, .36, 1); }
.ls-drop.is-over { border-style: solid; border-color: var(--a-ink); background: var(--a-ground-2); }
.ls-drop-empty, .ls-drop-file { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; }
.ls-drop-empty b, .ls-drop-file b { font-size: 14px; }
.ls-drop-ic { width: 36px; height: 36px; margin-bottom: 6px; border: 1.5px solid var(--a-edge); border-radius: 50%; background: var(--a-amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 12V4M4.5 7.5 8 4l3.5 3.5' fill='none' stroke='%231F1A17' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.ls-drop-empty { opacity: 0; }
.ls-wave { display: inline-flex; align-items: center; gap: 3px; height: 28px; }
.ls-wave i { width: 3px; border-radius: 2px; background: var(--a-ink); }
.ls-wave i:nth-child(1) { height: 10px; } .ls-wave i:nth-child(2) { height: 20px; } .ls-wave i:nth-child(3) { height: 26px; } .ls-wave i:nth-child(4) { height: 16px; } .ls-wave i:nth-child(5) { height: 8px; }
.ls-pipe { display: grid; gap: 10px; }
.ls-pipe li { display: grid; grid-template-columns: 84px minmax(0, 1fr) 104px; align-items: center; gap: 12px; font-weight: 600; }
.ls-pipe .a-bar { height: 8px; border-radius: 4px; }
.ls-pipe .a-bar i { border-radius: 4px; }
.ls-pipe-v { text-align: right; color: var(--a-mute); font-weight: 600; }
.ls-drag { position: absolute; left: 500px; top: 352px; z-index: 25; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; background: var(--a-paper); border: 1.5px solid var(--a-edge); border-radius: 12px; box-shadow: 3px 3px 0 var(--a-edge); font: 400 12px/1.3 "Nunito Sans", sans-serif; color: var(--a-ink); opacity: 0; }
.ls-drag .ls-wave { height: 22px; }
.ls-drag > span:last-child { display: grid; }
.ls-drag > span:last-child span { color: var(--a-mute); }

.ls-rep { gap: 12px; }
.ls-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ls-title { font: 700 18px/1.2 "Baloo 2", sans-serif; }
.ls-overall { display: flex; align-items: baseline; gap: 4px; flex: none; }
.ls-overall .a-label { margin-right: 6px; }
.ls-overall b { font: 700 34px/1 "Baloo 2", sans-serif; }
.ls-overall .a-tone { margin-left: 8px; align-self: center; }
.ls-body { display: grid; grid-template-columns: 214px minmax(0, 1fr); gap: 16px; min-height: 0; flex: 1; }
.ls-areas { display: grid; align-content: start; gap: 2px; }
.ls-area { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 5px; column-gap: 8px; padding: 6px 10px; border: 1.5px solid transparent; border-radius: 10px; font-weight: 600; transition: background-color .2s cubic-bezier(.22, 1, .36, 1), border-color .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s cubic-bezier(.22, 1, .36, 1); }
.ls-area b { font-weight: 700; }
.ls-area .a-bar { grid-column: 1 / -1; height: 4px; }
.ls-word-r { grid-column: 1 / -1; font-size: 11px; color: var(--a-mute); font-weight: 600; line-height: 4px; height: 4px; overflow: visible; }
.ls-area.is-sel { background: var(--a-paper); border-color: var(--a-edge); box-shadow: 2px 2px 0 var(--a-edge); }
.ls-detail { position: relative; min-width: 0; }
.ls-pane { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; }
.ls-pane--sum { opacity: 0; }
.ls-profile { font: 700 16px/1.3 "Baloo 2", sans-serif; margin-bottom: 8px; }
.ls-tip { padding: 10px 12px; border: 1.5px solid var(--a-edge); border-radius: 12px; background: var(--a-paper); }
.ls-pane-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ls-pane-h b { font: 700 16px/1.2 "Baloo 2", sans-serif; }
.ls-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ls-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1.5px solid var(--a-edge); border-radius: 999px; background: var(--a-paper); font-size: 13px; transition: background-color .2s cubic-bezier(.22, 1, .36, 1), color .2s cubic-bezier(.22, 1, .36, 1); }
.ls-chip b { font-size: 11px; font-weight: 700; color: var(--a-mute); transition: color .2s cubic-bezier(.22, 1, .36, 1); }
.ls-chip.is-sel { background: var(--a-ink); color: #fff; }
.ls-chip.is-sel b { color: #E8DED4; }
.ls-said { margin-top: 4px; }
.ls-quotes { display: grid; gap: 6px; }
.ls-quote { padding: 6px 10px; border: 1px solid rgba(31, 26, 23, .2); border-radius: 10px; background: var(--a-paper); font-size: 12.5px; line-height: 1.5; }
.ls-quote mark { position: relative; z-index: 0; background: none; color: inherit; font-weight: 600; padding: 0 1px; }
.ls-quote .hl { position: absolute; inset: 0 -2px; z-index: -1; border-radius: 3px; background: #FFD58A; transform-origin: 0 50%; }

/* ---------- Lesson feedback ---------- */
[data-demo="feedback"] .view { --sh-n: 650; }
.fb { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 18px; }
.fb-left { padding: 14px; align-self: start; }
.fb-list { display: grid; gap: 6px; }
.fb-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr) 8px; align-items: center; gap: 10px; padding: 7px 10px; border: 1.5px solid transparent; border-radius: 10px; background: var(--a-ground); transition: background-color .2s cubic-bezier(.22, 1, .36, 1), border-color .2s cubic-bezier(.22, 1, .36, 1), opacity .2s cubic-bezier(.22, 1, .36, 1); }
.fb-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(31, 26, 23, .3); background: var(--a-paper); font-size: 11px; font-weight: 700; }
.fb-dot { width: 8px; height: 8px; border-radius: 50%; }
.fb-list [data-t="0"] .fb-dot { background: #E5484D; }
.fb-list [data-t="1"] .fb-dot { background: #8F9BA8; }
.fb-list [data-t="2"] .fb-dot { background: #F5A524; }
.fb-list li.is-hit { border-color: var(--a-edge); background: var(--a-ground-2); }
.fb-list li.is-dim { color: var(--a-mute); }
.fb-right { position: relative; display: flex; flex-direction: column; }
.fb-go { position: absolute; left: 0; right: 0; top: 120px; display: grid; justify-items: center; gap: 10px; opacity: 0; }
.fb-go .a-prog { width: 120px; }
.fb-themes { display: grid; gap: 10px; }
.fb-theme { display: grid; justify-items: start; gap: 5px; padding: 10px 12px; transition: background-color .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s cubic-bezier(.22, 1, .36, 1); }
.fb-theme b { font: 700 15px/1.2 "Baloo 2", sans-serif; }
.fb-meta { display: flex; align-items: center; gap: 8px; color: var(--a-mute); font-size: 12px; font-weight: 600; }
.fb-conf { display: grid; grid-template-columns: 96px auto; align-items: center; gap: 8px; color: var(--a-mute); font-size: 11px; font-weight: 600; }
.fb-conf .a-bar { height: 4px; }
.fb-conf .a-bar i { background: var(--a-ink); }
.fb-theme.is-sel { background: var(--a-ground-2); box-shadow: 4px 4px 0 var(--a-edge); }

/* ---------- AI quiz ---------- */
[data-demo="quiz"] .view { --sh-n: 600; }
.qz { display: flex; flex-direction: column; gap: 12px; }
.qz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qz-steps { display: flex; gap: 6px; font-size: 11.5px; font-weight: 700; }
.qz-steps li { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 999px; color: var(--a-mute); border: 1px solid rgba(31, 26, 23, .25); }
.qz-steps li.done { color: #166534; border-color: #86EFAC; background: #F0FDF4; }
.qz-steps li.now { color: #fff; background: var(--a-ink); border-color: var(--a-ink); }
.qz-body { position: relative; flex: 1; }
.qz-gen { position: absolute; inset: 0 0 auto; display: grid; gap: 10px; padding: 14px 16px; opacity: 0; }
.qz-gen-h { display: grid; gap: 2px; }
.qz-gen-h b { font: 700 16px/1.2 "Baloo 2", sans-serif; }
.qz-src { display: grid; gap: 6px; }
.qz-src li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid rgba(31, 26, 23, .2); border-radius: 10px; font-weight: 600; }
.qz-src li.off { color: var(--a-mute); }
.qz-src li.off .a-check { border-color: rgba(31, 26, 23, .25); }
.qz-none { font-size: 11px; }
.qz-opts { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.qz-opts > span { display: grid; gap: 4px; }
.qz-go { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.qz-go .a-prog { flex: 1; }
.qz-list { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; }
.qz-list-h { display: flex; align-items: baseline; gap: 8px; }
.qz-list-h b { font: 700 16px/1.2 "Baloo 2", sans-serif; }
.qz-qs { display: grid; gap: 8px; }
.qz-qs li:nth-child(5) { margin-bottom: 4px; }
.qz-qs li { display: grid; gap: 3px; padding: 8px 12px; font-weight: 600; box-shadow: 2px 2px 0 var(--a-edge); }
.qz-q-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }

/* ---------- before and after ---------- */
[data-demo="prepost"] .view { --sh-n: 660; }
.pp { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; padding-bottom: 12px; }
.pp-journey { padding: 10px 14px; display: grid; gap: 8px; }
.pp-jh { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pp-jh b { font: 700 16px/1.2 "Baloo 2", sans-serif; }
.pp-path { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); align-items: center; }
.pp-stage { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; column-gap: 8px; row-gap: 2px; padding: 6px 10px; border: 1.5px solid var(--a-edge); border-radius: 12px; background: var(--a-ground); }
.pp-num { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--a-edge); background: var(--a-paper); font-size: 11px; font-weight: 700; }
.pp-sub { grid-column: 2 / -1; font-size: 12px; }
.pp-link { height: 0; border-top: 2px dashed rgba(31, 26, 23, .4); }
.pp-stage--after { grid-template-columns: 22px minmax(0, 1fr) auto auto; }
.pp-state { display: grid; }
.pp-state > * { grid-area: 1 / 1; justify-self: end; }
.pp-state [data-locked] { opacity: 0; }
.pp-toggle { position: relative; width: 36px; height: 22px; border: 1.5px solid var(--a-edge); border-radius: 999px; background: var(--a-amber); transition: background-color .2s cubic-bezier(.22, 1, .36, 1); }
.pp-toggle.is-off { background: #EDE3D6; }
.pp-toggle i { position: absolute; left: 2px; top: 2px; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--a-edge); background: var(--a-paper); transform: translateX(14px); }
.pp-tabs { display: flex; gap: 6px; font-weight: 700; font-size: 12px; }
.pp-tabs span { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 12px; border-radius: 999px; color: var(--a-mute); }
.pp-tabs b { font-size: 11px; }
.pp-tabs .is-on { border: 1.5px solid var(--a-edge); background: var(--a-paper); color: var(--a-ink); box-shadow: 2px 2px 0 var(--a-edge); }
.pp-res { padding: 10px 14px 12px; display: grid; gap: 8px; }
.pp-res-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pp-res-h b { font: 700 16px/1.2 "Baloo 2", sans-serif; }
.pp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pp-tile { display: grid; align-content: space-between; gap: 2px; padding: 4px 10px; border: 1px solid rgba(31, 26, 23, .3); border-radius: 10px; background: var(--a-ground); }
.pp-tile b { font: 700 17px/1.15 "Baloo 2", sans-serif; }
.pp-tile--hl { background: #FFF4E0; border-color: #F5B66A; }
.pp-tile--hl b { color: var(--a-deep); }
.pp-moves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pp-move { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(31, 26, 23, .2); font-size: 12px; font-weight: 600; }
.pp-move b { margin-left: auto; }
.pp-move i { width: 7px; height: 7px; border-radius: 50%; }
.pp-move--up { background: #EFFBF4; } .pp-move--up i { background: #12A150; }
.pp-move--eq i { background: #F5A524; }
.pp-move--dn { background: #FFF0F2; color: #9F1239; } .pp-move--dn i { background: #E11D48; }
.pp-qs { display: grid; gap: 6px; }
.pp-qs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; align-items: center; }
.pp-q { display: flex; align-items: flex-start; gap: 8px; min-width: 0; font-weight: 600; font-size: 12px; line-height: 1.35; }
.pp-q .a-tag { margin-top: -1px; }
.pp-q .a-tag { flex: none; height: 18px; font-size: 10px; }
.pp-q-n { display: flex; gap: 8px; font-size: 11px; font-weight: 600; color: var(--a-mute); }
.pp-q-n .up { color: #12753F; } .pp-q-n .dn { color: #BE123C; }
.pp-split { grid-column: 1 / -1; display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: #F1E6D8; }
.pp-split i { flex: 0 0 calc(var(--v) * 100%); height: 100%; transform-origin: 0 50%; }
.pp-split .g { background: #12A150; } .pp-split .y { background: #F5C518; } .pp-split .r { background: #E11D48; }

/* ---------- LumiPlay (the host screen is dark in the product) ---------- */
[data-demo="lumiplay"] .view { --sh-n: 540; }
.app--play {
  display: block; padding: 14px 20px;
  background: radial-gradient(70% 60% at 80% 0%, rgba(255, 185, 85, .14), transparent 70%), #16110E;
  color: #F6EFE7;
}
.lp-top { display: flex; align-items: center; gap: 10px; height: 28px; font-size: 13px; }
.lp-top b { color: #FFB955; font-weight: 700; }
.lp-beta { height: 18px; padding: 0 6px; border-radius: 4px; background: #3A2A1A; color: #FFCF8A; font-size: 10px; font-weight: 700; line-height: 18px; }
.lp-pin-s { margin-left: auto; height: 26px; padding: 0 12px; border-radius: 999px; background: #fff; color: #16110E; font-weight: 700; line-height: 26px; letter-spacing: .08em; }
.lp-scr { position: absolute; left: 20px; right: 20px; top: 56px; bottom: 16px; }
.lp-lobby { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-content: start; opacity: 0; }
.lp-label { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #C9B9A6; }
.lp-pinbox, .lp-people { display: grid; gap: 12px; align-content: start; padding: 16px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; background: rgba(255, 255, 255, .04); }
.lp-digits { display: flex; gap: 6px; }
.lp-digits i { display: grid; place-items: center; width: 42px; height: 54px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); background: #241B15; font: 700 30px/1 "Baloo 2", sans-serif; font-style: normal; color: #fff; }
.lp-join { color: #C9B9A6; font-size: 12px; }
.lp-join b { color: #fff; }
.lp-avatars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.lp-avatars li { display: grid; justify-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.lp-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c); color: #1F1A17; font: 700 15px/1 "Baloo 2", sans-serif; border: 1.5px solid #1F1A17; }
.lp-start { justify-self: start; display: inline-flex; align-items: center; height: 36px; padding: 0 22px; border-radius: 999px; background: #FFB955; color: #1F1A17; font-weight: 800; letter-spacing: .04em; border: 1.5px solid #1F1A17; }
.lp-game { display: grid; gap: 16px; align-content: start; }
.lp-game-top { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 16px; font-size: 12px; color: #C9B9A6; font-weight: 600; }
.lp-timer { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.lp-timer i { display: block; height: 100%; background: #FFB955; transform-origin: 0 50%; transform: scaleX(.35); }
.lp-q { font: 700 28px/1.15 "Baloo 2", sans-serif; color: #fff; text-align: center; padding: 10px 0 6px; }
.lp-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-a { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; column-gap: 10px; row-gap: 6px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .16); background: #241B15; transition: border-color .2s cubic-bezier(.22, 1, .36, 1), background-color .2s cubic-bezier(.22, 1, .36, 1), opacity .2s cubic-bezier(.22, 1, .36, 1); }
.lp-a b { font: 700 18px/1 "Baloo 2", sans-serif; }
.lp-a-k { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .1); font-weight: 700; font-size: 12px; }
.lp-a-n { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: center; gap: 8px; font-weight: 700; text-align: right; }
.lp-vbar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.lp-vbar i { display: block; height: 100%; background: #F6EFE7; transform-origin: 0 50%; transform: scaleX(var(--v)); }
.lp-a.is-right { border-color: #22C55E; background: rgba(34, 197, 94, .14); }
.lp-a.is-right .lp-vbar i { background: #22C55E; }
.lp-a.is-wrong { opacity: .55; }
.lp-board { display: grid; gap: 6px; }
.lp-board ol { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.lp-board li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 6px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); font-weight: 600; }
.lp-board .lp-av { width: 28px; height: 28px; font-size: 12px; }
.lp-pts { font-weight: 700; color: #FFCF8A; }

/* ---------- Live Q&A ---------- */
[data-demo="qa"] .view { --sh-n: 600; }
.qa { display: flex; flex-direction: column; gap: 14px; }
.qa-top { display: flex; align-items: center; gap: 8px; }
.qa-top .a-h { margin-right: auto; font-size: 20px; }
.qa-cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.qa-list { display: flex; flex-direction: column; gap: 10px; }
.qa-q { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 12px; box-shadow: 2px 2px 0 var(--a-edge); }
.qa-q--top { order: -1; box-shadow: 3px 3px 0 var(--a-edge); }
.qa-v { display: grid; justify-items: center; padding: 4px 0; border: 1px solid rgba(31, 26, 23, .25); border-radius: 10px; background: var(--a-ground); }
.qa-arrow { font-size: 12px; line-height: 14px; color: var(--a-mute); }
.qa-q--top .qa-arrow { color: var(--a-deep); }
.qa-v b { font-size: 15px; line-height: 18px; }
.qa-t { display: grid; gap: 8px; font-weight: 600; font-size: 13.5px; line-height: 1.4; padding-top: 2px; }
.qa-actions { display: grid; justify-items: start; }
.qa-actions > * { grid-area: 1 / 1; }
.qa-actions [data-draftbtn] { opacity: 0; }
.qa-draft { display: grid; gap: 6px; padding: 12px 14px; border-color: #E9A24C; background: #FFFCF6; box-shadow: 3px 3px 0 #E9A24C; }
.qa-draft-h { font-weight: 700; color: var(--a-deep); font-size: 12px; }
.qa-draft-q { font-weight: 700; margin-bottom: 2px; }
.qa-line { color: var(--a-ink-2); }
.qa-draft-act { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.qa-draft-act [data-approve].is-done { background: #DCFCE7; }

/* ---------- Homework ---------- */
[data-demo="homework"] .view { --sh-n: 640; }
.hw { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 16px; align-items: start; }
.hw-left { display: grid; gap: 14px; }
.hw-task, .hw-sub { display: grid; gap: 8px; padding: 12px 14px; }
.hw-task p { font: 700 15px/1.3 "Baloo 2", sans-serif; }
.hw-kinds { display: flex; gap: 6px; }
.hw-sub-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hw-text { padding: 8px 10px; border-radius: 10px; background: var(--a-ground); font-size: 13.5px; }
.hw-go { display: flex; align-items: center; gap: 12px; }
.hw-go .a-prog { flex: 1; }
.hw-res { display: grid; gap: 10px; padding: 14px 16px; }
.hw-res-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hw-score { font-weight: 600; color: var(--a-mute); }
.hw-score b { font: 700 22px/1 "Baloo 2", sans-serif; color: var(--a-ink); }
.hw-bar { height: 8px; border-radius: 4px; }
.hw-item { display: grid; gap: 2px; padding: 6px 0 6px 12px; border-left: 3px solid; }
.hw-item b { font-size: 13.5px; }
.hw-item p { color: var(--a-ink-2); font-size: 12.5px; }
.hw-item--ok { border-color: #12A150; }
.hw-item--no { border-color: #E11D48; }
.hw-item--hint { border-color: #F5A524; }

/* ---------- hero report (a still, real report; its bars fill once on load) ---------- */
.hero-app { position: relative; display: grid; gap: 14px; padding: 18px 20px 20px; grid-template-columns: minmax(0, 1fr); font-size: 13px; }
.hr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.hr-title { font: 700 20px/1.2 "Baloo 2", sans-serif; margin: 2px 0; }
.hr-score { text-align: right; flex: none; }
.hr-score p:last-child { display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; color: var(--a-mute); font-weight: 600; }
.hr-score b { font: 700 40px/1 "Baloo 2", sans-serif; color: var(--a-ink); }
.hr-score .a-tone { margin-left: 6px; align-self: center; }
.hr-profile { font: 700 15px/1.3 "Baloo 2", sans-serif; padding-top: 12px; border-top: 1.5px solid var(--a-edge); }
.hr-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.hr-areas li { display: grid; grid-template-columns: minmax(0, 1fr) 28px; column-gap: 8px; row-gap: 4px; align-items: center; font-weight: 600; }
.hr-areas .a-bar { grid-column: 1 / -1; grid-row: 2; height: 5px; }
.hr-n { text-align: right; font-weight: 700; }
.hr-word { grid-column: 1 / -1; color: var(--a-mute); font-size: 12px; }
.hr-tip { display: grid; gap: 4px; padding: 10px 12px; border: 1.5px solid var(--a-edge); border-radius: 12px; background: var(--a-paper); box-shadow: 3px 3px 0 var(--a-edge); }

/* ---------- the narrow design (a window under 560px wide) ---------- */
@container win (max-width: 559px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .a-rail { display: none; }
  .a-main { padding: 14px; }
  .ls-scr { inset: 14px; }
  .ls-drop { height: 150px; }
  .ls-pipe li { grid-template-columns: 76px minmax(0, 1fr) 92px; gap: 8px; }
  .ls-drag { left: 150px; top: 560px; }
  .ls-head { flex-direction: column; gap: 6px; }
  .ls-body { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ls-areas { grid-template-columns: 1fr 1fr; gap: 4px; }
  .ls-area { padding: 5px 8px; row-gap: 3px; font-size: 12px; }
  .ls-detail { min-height: 330px; }
  .ls-quote { font-size: 12px; }
  .fb { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .fb-list li:nth-child(n+5) { display: none; }
  .fb-go { top: 60px; }
  .fb-themes { gap: 8px; }
  .fb-conf { display: none; }
  .qz-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .qz-steps li:not(.now) { display: none; }
  .qz-opts { grid-template-columns: 1fr; gap: 8px; }
  .qz-qs li:nth-child(n+5) { display: none; }
  .pp-path { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pp-link { display: none; }
  .pp-tiles { grid-template-columns: 1fr 1fr; }
  .pp-moves { gap: 6px; }
  .pp-move { padding: 0 8px; gap: 4px; font-size: 11px; }
  .pp-qs li { grid-template-columns: minmax(0, 1fr); }
  .pp-qs li:nth-child(3) { display: none; }
  .app--play { padding: 12px 14px; }
  .lp-scr { left: 14px; right: 14px; top: 50px; }
  .lp-lobby { grid-template-columns: minmax(0, 1fr); }
  .lp-digits i { width: 40px; height: 50px; font-size: 26px; }
  .lp-q { font-size: 22px; }
  .lp-board ol { grid-template-columns: minmax(0, 1fr); }
  .lp-board li { height: 32px; }
  .qa-top .a-pill:last-child { display: none; }
  .qa-cols { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hw { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero-app { padding: 14px; }
  .hr-areas { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
