/* Trana Learn: one idea per screen. Same file in the Tauri window and the browser.
   ce-design (the observatory look, ce/tokens.css from agent-site-skills skills/ce-design): black stage, glass panels
   with a hairline, one amber accent, Michroma display caps, JetBrains Mono for labels and figures, square corners.
   Dark is the default; light only by the switch (data-theme="light", remembered as ce-theme). No glows, no gradients. */
:root { --h: 0; }

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 1px solid var(--acc); outline-offset: 2px; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }

.backdrop, .glow { display: none; }

/* the column: a glass slab on the black stage, hairlines left and right on wide screens */
.shell { position: fixed; inset: 0; margin: 0 auto; width: 100%; max-width: 520px; background: var(--surface); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

/* top bar: brand, streak readout, icon buttons, then the subject chips */
.top {
  position: absolute; z-index: 5; left: 0; right: 0; top: 0;
  padding: calc(env(safe-area-inset-top) + 8px) 0 10px;
  background: var(--panel); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 4px; padding: 0 10px 0 20px; height: 44px; }
.brand { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.brand img { display: block; border-radius: 2px; }
.brand > span { font: 400 13px/1 var(--disp); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.brand b { font-weight: 400; color: var(--ink-2); }
.brand i { font-style: normal; color: var(--acc); }
.spacer { flex: 1; }
.streak {
  display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--mono); font-variant-numeric: tabular-nums;
  padding: 0 10px; height: 30px; border-radius: var(--r-sm); color: var(--ink-2); border: 1px solid var(--line); margin-right: 6px;
}
.streak::after { content: "DAYS"; font: 500 9px var(--sans); letter-spacing: var(--track-label); color: var(--ink-3); }
.streak svg { width: 13px; height: 13px; stroke: none; fill: var(--ink-3); transition: fill .3s; }
.streak.on { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 45%, transparent); }
.streak.on svg { fill: var(--acc); }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink-2); transition: background-color var(--fast), color var(--fast); }
.iconbtn:hover { background: var(--press); color: var(--ink); }
.iconbtn svg { width: 19px; height: 19px; }

.chips { display: flex; gap: 4px; overflow-x: auto; padding: 8px 20px 0; scrollbar-width: none; scroll-padding: 0 20px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 30px; padding: 0 11px; border-radius: var(--r-sm); border: 1px solid transparent;
  background: none; color: var(--ink-2); font: 500 10.5px var(--sans); letter-spacing: var(--track-label); text-transform: uppercase; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px; transition: background-color var(--fast), color var(--fast);
}
.chip:hover { color: var(--ink); background: var(--hover); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.chip.all::before { display: none; }
.chips .chip[aria-pressed="true"] { color: var(--ink); background: var(--press); border-color: var(--line); }
.chips .chip[aria-pressed="true"]::before { background: var(--acc); }

/* the feed: one card per screen */
.feed {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; outline: none;
}
.feed::-webkit-scrollbar { display: none; }
.card {
  position: relative; height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always;
  overflow: hidden; background: var(--surface); outline: none; contain: layout paint;
}
/* the reading block: amber corner ticks top-left and bottom-right, like the featured card on every ce screen */
.body {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: calc(env(safe-area-inset-top) + 118px) 92px calc(env(safe-area-inset-bottom) + 40px) 24px;
  overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain;
}
.body::-webkit-scrollbar { display: none; }
.body > * { flex-shrink: 0; }
.card.open .body { justify-content: flex-start; }
.meta { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding-top: 14px; }
.meta::before { content: ""; position: absolute; left: -8px; top: 0; width: var(--tick); height: var(--tick); border: 1px solid var(--acc); border-right: 0; border-bottom: 0; }
.meta .chip { height: auto; padding: 0; border: 0; background: none; color: var(--acc); font: 500 10px var(--mono); letter-spacing: var(--track-crumb); }
.meta .chip::before { background: var(--acc); }
.meta .chip:hover { background: none; color: var(--acc-hi); }
.kind { font: 500 10px var(--mono); letter-spacing: var(--track-crumb); text-transform: uppercase; color: var(--ink-2); }
.kind::before { content: "/ "; color: var(--ink-3); }
.kind:empty { display: none; }
.title {
  margin: 0 0 18px; font: 400 clamp(23px, 6.6vw, 31px)/1.18 var(--disp); letter-spacing: .05em; text-transform: uppercase;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance;
}
.title::after { content: "."; color: var(--acc); }
.idea { margin: 0; font-size: clamp(18px, 5vw, 20px); line-height: 1.5; color: var(--ink); text-wrap: pretty; max-width: 34ch; }
.more { margin-top: 20px; font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 38ch; border-top: 1px solid var(--line); padding-top: 16px; }
.more p, .more ol, .more ul { margin: 0 0 12px; }
.more ol, .more ul { padding-left: 1.2em; }
.more li { margin: 0 0 6px; }
.more li::marker { color: var(--acc); font-family: var(--mono); }
.more code { font: 13px var(--mono); background: var(--well); border: 1px solid var(--line); padding: 1px 5px; border-radius: var(--r-sm); color: var(--ink); }
.more strong { color: var(--ink); font-weight: 600; }
.more a { color: var(--acc); }
.btnrow { display: flex; gap: 10px; align-items: center; margin-top: 24px; }
.listen-btn {
  height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: transparent; color: var(--ink-2, var(--ink));
  font: 500 10.5px var(--sans); letter-spacing: var(--track-label); text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center;
  transition: border-color var(--fast), color var(--fast), transform .14s var(--ease);
}
.listen-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.listen-btn:hover { border-color: var(--acc); color: var(--ink); }
.listen-btn:active { transform: scale(.97); }
.listen-btn[aria-pressed="true"] { border-color: var(--acc); color: var(--acc); }
.listen-btn[aria-pressed="true"] svg path:nth-child(2) { animation: wave 1.1s var(--ease) infinite; }
@keyframes wave { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .listen-btn[aria-pressed="true"] svg path:nth-child(2) { animation: none; } }
.more-btn {
  align-self: flex-start; border: 1px solid var(--acc); padding: 0 14px; height: 36px; border-radius: var(--r-sm);
  background: var(--acc); color: var(--acc-ink); font: 500 10.5px var(--sans); letter-spacing: var(--track-label); text-transform: uppercase;
  display: inline-flex; gap: 10px; align-items: center; transition: background-color var(--fast), transform .14s var(--ease);
}
.more-btn:hover { background: var(--acc-hi); }
.more-btn:active { transform: scale(.97); }
.more-btn::after { content: ""; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .25s; }
.more-btn[aria-expanded="true"] { background: transparent; color: var(--ink); border-color: var(--line-2); }
.more-btn[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.more-btn:empty, .more-btn[hidden] { display: none; }
.foot { position: relative; margin-top: 30px; padding-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font: 400 10.5px var(--mono); letter-spacing: .04em; color: var(--ink-3); }
.foot::after { content: ""; position: absolute; left: -8px; bottom: 0; width: var(--tick); height: var(--tick); border: 1px solid var(--acc); border-right: 0; border-top: 0; }
.level { display: inline-flex; align-items: center; gap: 3px; }
.level::before { content: "LVL"; font: 500 9px var(--sans); letter-spacing: var(--track-label); color: var(--ink-3); margin-right: 5px; }
.level i { width: 12px; height: 3px; background: var(--raise); border: 1px solid var(--line); }
.level i.on { background: var(--acc); border-color: var(--acc); }
.why:empty, .by:empty { display: none; }
.why { color: var(--ink-2); }

/* the action column: square glass buttons, caps labels; amber = yours, green = known */
.rail {
  position: absolute; right: 14px; bottom: calc(env(safe-area-inset-bottom) + 36px); z-index: 2;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.act { border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 60px; color: var(--ink); }
.act svg { box-sizing: content-box; width: 20px; height: 20px; padding: 12px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: background-color var(--fast), color var(--fast), fill var(--fast), border-color var(--fast), transform .14s var(--ease); }
.act:hover svg { background: var(--press); border-color: var(--line-2); }
.act:active svg { transform: scale(.94); }
.act span { font: 500 8.5px var(--sans); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-2); }
.act.like[aria-pressed="true"] svg { color: var(--acc); fill: var(--acc); border-color: var(--acc); }
.act.save[aria-pressed="true"] svg { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); fill: var(--acc-ink); }
.act.know[aria-pressed="true"] svg { background: var(--live); border-color: var(--live); color: var(--acc-ink); }
.act:disabled { opacity: .3; cursor: default; }
.act.pop svg { animation: pop .3s var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* the mark on double tap */
.burst { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; color: var(--acc); fill: var(--acc); stroke: none; pointer-events: none; animation: burst .6s var(--ease) forwards; z-index: 3; }
@keyframes burst { 0% { transform: scale(.5); opacity: 0; } 25% { transform: scale(1); opacity: .95; } 100% { transform: scale(1.05) translateY(-24px); opacity: 0; } }

.end { display: grid; place-items: center; text-align: left; padding: 0 32px; color: var(--ink-2); font-size: 16px; }
.end h1 { color: var(--ink); font: 400 clamp(22px, 6vw, 28px)/1.2 var(--disp); letter-spacing: .05em; text-transform: uppercase; margin: 0 0 14px; }

/* toast: a glass strip, mono */
.note {
  position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 24px); transform: translate(-50%, 16px); z-index: 8;
  max-width: calc(100% - 32px); padding: 10px 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); color: var(--ink);
  font: 400 12px var(--mono); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); overflow-wrap: anywhere;
}
.note.show { opacity: 1; transform: translate(-50%, 0); }

/* saved: a grid of glass tiles */
.saved { position: fixed; inset: 0; z-index: 10; background: var(--ground); }
.saved-in { margin: 0 auto; max-width: 520px; height: 100%; overflow-y: auto; padding: calc(env(safe-area-inset-top) + 16px) 16px 40px; background: var(--surface); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.saved-top { display: flex; align-items: center; justify-content: space-between; padding: 0 0 18px 4px; }
.saved-top h2 { margin: 0; font: 400 24px/1 var(--disp); letter-spacing: .06em; text-transform: uppercase; }
.saved-top h2::after { content: "."; color: var(--acc); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tile {
  text-align: left; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; min-height: 148px;
  background: var(--panel); display: flex; flex-direction: column; gap: 8px; transition: background-color var(--fast), border-color var(--fast);
}
.tile:hover { background: var(--press); border-color: var(--line-2); }
.tile small { font: 500 9.5px var(--mono); letter-spacing: var(--track-crumb); text-transform: uppercase; color: var(--acc); display: inline-flex; align-items: center; gap: 7px; }
.tile small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); flex: none; }
.tile b { font: 400 12.5px/1.3 var(--disp); letter-spacing: .05em; text-transform: uppercase; }
.tile span { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.grid .empty { grid-column: 1 / -1; color: var(--ink-2); padding: 40px 8px; text-align: center; font: 400 12px var(--mono); }

:root[data-theme="light"] .act.know[aria-pressed="true"] svg { color: #fff; }
@media (min-width: 560px) {
  .title { font-size: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  .feed { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* reticle mark: light variant by default, dark variant under the dark switch */
.brand .mark-d{display:none}
:root:not([data-theme="light"]) .brand .mark-l{display:none}
:root:not([data-theme="light"]) .brand .mark-d{display:block}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* today: five ideas a day, the same five all day */
.today-btn { position: relative; }
.today-btn .badge { position: absolute; right: -2px; bottom: 2px; font: 500 8.5px var(--mono); color: var(--ink-3); background: var(--surface); border-radius: 6px; padding: 0 2px; }
.today-btn.done { color: var(--acc); }
.today-btn.done .badge { color: var(--acc); }
.today-p { margin: -6px 4px 16px; font-size: 14px; color: var(--ink-2); }
.tile.read { opacity: .55; }
.tile.read small::after { content: "read"; color: var(--ink-3); }

/* post an idea */
.post { display: grid; gap: 14px; padding: 0 4px; }
.post label { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 6px 8px; font: 400 10.5px var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-2); }
.post label > :is(input, textarea, select) { grid-column: 1 / -1; }
.post label i { font-style: normal; text-transform: none; color: var(--ink-3); }
.post .row { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
.post input, .post textarea, .post select { width: 100%; box-sizing: border-box; font: 400 15px/1.45 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--well); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
.post textarea { resize: vertical; }
.post input:focus, .post textarea:focus, .post select:focus { outline: none; border-color: var(--acc); }
.post .count { justify-self: end; color: var(--ink-3); }
.post .send { justify-self: start; border: 0; border-radius: var(--r-sm); padding: 11px 22px; font: 500 14px var(--sans); background: var(--acc); color: var(--acc-ink); cursor: pointer; }
.post .send:disabled { opacity: .5; cursor: default; }
.post .answer { margin: 0; font-size: 14px; color: var(--ink-2); white-space: pre-line; }
.post .answer.ok { color: var(--ink); }
.foot .src { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.foot .src:hover { color: var(--acc); }

/* a live simulation on a card */
.sim { margin-top: 22px; max-width: 42ch; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; background: var(--well); }
.sim h2 { margin: 0 0 4px; font: 400 10.5px var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--acc); }
.sim-hint { margin: 0 0 10px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.sim svg { width: 100%; height: auto; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
.sim .goal { stroke: var(--ink-3); stroke-dasharray: 4 4; stroke-width: 1; }
.sim .trace { fill: none; stroke: var(--acc); stroke-width: 2; stroke-linejoin: round; transition: opacity var(--fast); }
.sim.busy .trace { opacity: .45; }
.sim-stats { margin: 8px 0 10px; min-height: 1.4em; font: 400 11px var(--mono); color: var(--ink); }
.knobs { display: grid; gap: 6px; }
.knobs label { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 8px; font: 400 11px var(--mono); color: var(--ink-2); }
.knobs input { width: 100%; accent-color: var(--acc); }
.knobs output { text-align: right; color: var(--ink); }

/* collections in Saved */
.cols { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px 14px; }
.cols .chip[aria-pressed="true"] { color: var(--ink); background: var(--press); }
.stile { display: grid; gap: 4px; align-content: start; }
.stile .tile { width: 100%; }
.col-act { justify-self: start; border: 1px solid var(--line); border-radius: var(--r-sm); background: transparent; color: var(--ink-2); font: 400 11px var(--mono); padding: 5px 8px; }
.col-act:hover { color: var(--ink); border-color: var(--line-2); }
.linkbtn { border: 0; background: none; padding: 0; color: var(--acc); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* sources */
.srcs { display: grid; gap: 22px; padding: 0 4px; }
.src-site h3 { margin: 0 0 8px; font: 500 12px var(--mono); letter-spacing: var(--track-label); color: var(--ink); }
.src-site h3 span { color: var(--ink-3); }
a.col-act { text-decoration: none; }

/* narrow phones: six header buttons fit (the wordmark and the DAYS label give way) */
@media (max-width: 460px) {
  .bar { padding: 0 6px 0 14px; gap: 0; }
  .brand > span { display: none; }
  .streak::after { display: none; }
  .iconbtn { width: 38px; }
}

/* path: what to learn next */
.path-chip { color: var(--acc); }
.path-pick { display: flex; align-items: center; gap: 10px; padding: 0 4px 12px; font: 400 10.5px var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-2); }
.path-pick select { flex: 1; font: 400 14px var(--sans); color: var(--ink); background: var(--well); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; }
.steps { list-style: none; margin: 0; padding: 0 4px; display: grid; gap: 8px; }
.steps li { display: grid; grid-template-columns: 26px 1fr; gap: 4px 10px; align-items: start; }
.steps li > i { font: 500 12px/26px var(--mono); font-style: normal; text-align: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink-2); }
.steps li > em { grid-column: 2; font: 400 10.5px var(--mono); font-style: normal; color: var(--ink-3); }
.steps li.done > i { background: var(--ink-3); border-color: var(--ink-3); color: var(--surface); }
.steps li.done .tile { opacity: .55; }
.steps li.next > i { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.steps li.next .tile { border-color: var(--acc); }
.steps li.next > em { color: var(--acc); }
.steps li.locked .tile { opacity: .7; }

/* review: one saved idea at a time, recalled before it is shown */
.review { grid-column: 1 / -1; border: 1px solid var(--line-2); border-radius: var(--r-md, 10px); padding: 28px 24px; background: linear-gradient(160deg, hsl(var(--h) 60% 50% / .10), transparent 60%), var(--well); }
.review .r-subj { font: 500 10.5px var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; color: hsl(var(--h) 70% 65%); }
.review .r-title { margin: 10px 0 0; font: 600 22px/1.25 var(--sans); color: var(--ink); text-wrap: balance; }
.review .r-idea { margin: 14px 0 0; color: var(--ink-2, var(--ink)); line-height: 1.55; }
.review .r-acts { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.review .r-acts .more-btn { margin-top: 0; }
.review .r-acts .more-btn::after { display: none; }

/* followed subjects: a small mark before the name, and the Follow toggle in the accent */
.chips .chip.followed::before { background: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 25%, transparent); }
.follow-chip { border-style: dashed; }
.follow-chip[aria-pressed="true"] { border-style: solid; border-color: var(--acc); color: var(--acc); }

/* search */
.find-q { width: 100%; height: 44px; margin: 4px 0 6px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--well); color: var(--ink); font: 400 16px var(--sans); }
.find-q:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent); }

/* simulation builder in the post form */
.simbuild { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 14px; margin: 4px 0 12px; }
.simbuild summary { cursor: pointer; font: 500 10.5px var(--sans); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink); }
.simbuild summary i { color: var(--ink-3); font-style: normal; margin-left: 6px; }
.simbuild[open] summary { margin-bottom: 8px; }
.simbuild code { font: 12px var(--mono); }
.simbuild .row { gap: 8px; }
#sim-preview .sim { margin-top: 8px; }

/* play: one hosted game or simulation per screen, swiped on the bars above and below it */
.play { position: fixed; inset: 0; z-index: 60; background: #070807; color: #e9e7e1; }
.play-scroll { height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.play-scroll::-webkit-scrollbar { display: none; }
.slide { height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; display: grid; grid-template-rows: 52px 1fr auto; position: relative; }
.slide-top { display: flex; align-items: center; gap: 12px; padding: 0 64px 0 18px; font: 500 10.5px var(--mono, ui-monospace); letter-spacing: .14em; color: #8a8a84; }
.slide-top .crumb { color: hsl(var(--h) 70% 62%); }
.slide-frame { position: relative; margin: 0 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; overflow: hidden; background: #0b0c0b; }
.slide-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .35s; }
.slide-frame.ready iframe { opacity: 1; }
.slide-wait { position: absolute; inset: 0; display: grid; place-items: center; font: 500 10.5px var(--mono, ui-monospace); letter-spacing: .2em; text-transform: uppercase; color: #8a8a84; }
.slide-foot { display: flex; gap: 12px; align-items: flex-end; padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); min-height: 104px; }
.slide-meta { flex: 1; min-width: 0; }
.slide-meta .subj { font: 500 10px var(--mono, ui-monospace); letter-spacing: .14em; text-transform: uppercase; color: hsl(var(--h) 70% 62%); }
.slide-title { margin: 4px 0 2px; font: 600 18px/1.2 var(--sans, system-ui); color: #e9e7e1; }
.slide-idea { margin: 0; font: 400 13px/1.4 var(--sans, system-ui); color: #b9b7b0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide-meta .by { font: 400 11px var(--mono, ui-monospace); color: #8a8a84; }
.slide-acts { display: flex; flex-direction: column; gap: 8px; }
.slide-acts .act { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.14); border-radius: 6px; background: rgba(255,255,255,.03); color: #e9e7e1; display: grid; place-items: center; }
.slide-acts .act svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.slide-acts .act[aria-pressed="true"] { color: #e0a33a; border-color: #e0a33a; }
.play-close { position: fixed; top: 6px; right: 8px; z-index: 61; color: #e9e7e1; }
.play-chip { color: var(--acc) !important; }
.play-btn::after { display: none; }
@media (min-width: 900px) { .slide { grid-template-columns: 1fr min(1100px, 92vw) 1fr; } .slide > * { grid-column: 2; } }

/* classrooms on the play screen */
.classbar { position: fixed; top: 8px; left: 50%; transform: translateX(-50%); z-index: 61; display: flex; gap: 6px; align-items: center; }
.classbtn { height: 32px; padding: 0 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; background: rgba(7,8,7,.85); color: #e9e7e1; font: 500 10px var(--mono, ui-monospace); letter-spacing: .12em; text-transform: uppercase; }
.classbtn[aria-pressed="true"] { border-color: #e0a33a; color: #e0a33a; }
.classbtn.new { border-color: #e0a33a; box-shadow: 0 0 0 3px rgba(224,163,58,.25); }
.classlive { display: flex; gap: 6px; align-items: center; padding: 0 4px 0 10px; height: 34px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(7,8,7,.85); font: 500 10px var(--mono, ui-monospace); letter-spacing: .1em; text-transform: uppercase; color: #8a8a84; }
.classlive b { color: #e9e7e1; font-weight: 600; }
.classlive .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #e0a33a; box-shadow: 0 0 8px #e0a33a; }
.classchat { position: fixed; left: 10px; right: 10px; bottom: 120px; z-index: 62; max-width: 460px; margin: 0 auto; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(7,8,7,.94); padding: 10px; }
.classlines { list-style: none; margin: 0 0 8px; padding: 0; max-height: 34vh; overflow-y: auto; font: 13px/1.4 var(--sans, system-ui); color: #d9d7d0; }
.classlines b { color: #e0a33a; font-weight: 600; }
#class-say, #class-join-form { display: flex; gap: 6px; }
#class-text, #class-name { flex: 1; height: 36px; padding: 0 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; background: #0b0c0b; color: #e9e7e1; font: 15px var(--sans, system-ui); }
.classjoin { position: fixed; inset: 0; z-index: 63; display: grid; place-items: center; background: rgba(7,8,7,.7); }
.classjoin form { flex-wrap: wrap; width: min(360px, 90vw); padding: 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: #0b0c0b; }
.classjoin p { width: 100%; margin: 0 0 8px; font: 14px var(--sans, system-ui); color: #e9e7e1; }
@media (max-width: 520px) { .classbar { left: 12px; transform: none; } .slide-top { padding-right: 12px; opacity: 0; } }
.classlive[hidden], .classjoin[hidden], .classchat[hidden], .classbtn[hidden], .play[hidden] { display: none !important; }
.play .slide-acts .act { background: rgba(255,255,255,.04); color: #e9e7e1; border-color: rgba(255,255,255,.16); box-shadow: none; }
.play .slide-acts .act svg { stroke: #e9e7e1; }
.play .slide-acts .act[aria-pressed="true"] svg { stroke: #e0a33a; }
.play .slide-acts .act svg { background: none; border: 0; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; width: 20px; height: 20px; }
.play .slide-acts .act { width: 44px; height: 44px; display: grid; place-items: center; }
