/* artamiel.si: the workspace's shell (product.css, workspace.css) in the cap's blue, in veromos's own fonts: syne for
   titles, ibm plex mono for every word */
@font-face { font-family: "Syne"; src: url(syne.ttf) format("truetype"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(ibm-plex-mono.ttf) format("truetype"); font-weight: 400; font-display: swap; }
:root {
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace; --title: "Syne", "IBM Plex Mono", sans-serif;
  --bg: #0b0c11; --rail: #0f1017; --panel: #13151d; --raised: #191b25; --line: #232634; --thumb: #2a2e3d; --bar: rgba(15, 16, 23, .94);
  --text: #bcbfcc; --dim: #7a7e8f; --faint: #4b4f5f; --edge: #656a7c; --bright: #f2f3f8;
  --mark: #4f8ff7; --hi: #d6e4ff; --name-end: #8cb6ff; --info: #a9c6fb;
  --soft: rgba(79, 143, 247, .14); --glow: rgba(79, 143, 247, .4); --glow-faint: rgba(79, 143, 247, .2); --glow-strong: rgba(79, 143, 247, .45); --tab-glow: rgba(214, 228, 255, .3);
  --stripe: #e2483d;
}
::selection { background: rgba(79, 143, 247, .28); color: var(--bright); }
h1, h2.head, .brand b, .hero .name, .tabgroup { font-family: var(--title); }
h1 { font-weight: 600; letter-spacing: -.02em; }
h2.head { font-weight: 600; }
.md h3, .md h4 { font-family: var(--title); font-weight: 600; letter-spacing: -.01em; }
.brand b { font-weight: 700; letter-spacing: -.01em; }
.brand img { border-radius: 10px; image-rendering: auto; }

/* the rail: tabs, the groups they sit under, the owner's own tools apart, links under them */
.tab > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab .lock { flex: none; width: 11px; height: 11px; margin-left: 10px; color: var(--dim); }
.tab:hover .lock, .tab.on .lock { color: var(--info); }
/* the owner's tags stay at every width: the rail has room for them */
.tab small { display: inline; flex: none; }
.tabgroup { margin: 16px 12px 2px; color: var(--dim); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; }
.tabgap { height: 14px; }
.own { margin: 18px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); }
.links { display: grid; gap: 2px; margin: 22px 6px 14px; }
.links:empty { display: none; }
.links a { padding: 3px 6px; color: var(--dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .15s ease; }
.links a:hover { color: var(--bright); }
nav .line { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
nav .line:empty { display: none; }
nav #foot { display: flex; justify-content: flex-start; margin: 14px 0 4px; padding: 0 12px; text-align: left; }

/* home: the words, and her beside them */
.hero { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 40px; margin: 0 0 18px; }
.hero .name { font-weight: 700; letter-spacing: -.04em; }
.hero .lead { color: var(--text); font-size: 15px; }
.hero .art { justify-self: end; height: min(386px, 58vh); width: auto; filter: drop-shadow(0 18px 40px rgba(79, 143, 247, .14)); animation: rise .9s ease-out both; }
.cover { display: block; max-width: 100%; max-height: 60vh; height: auto; margin: 4px 0 22px; border: 1px solid var(--line); border-radius: var(--shot-radius); }

/* the words of a page: films and sounds play in place, any other file is its download */
.md video { display: block; width: 100%; max-height: 70vh; margin: 6px 0 14px; border: 1px solid var(--line); border-radius: var(--shot-radius); background: #000; }
.md figure.sound { margin: 6px 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.md figure.sound figcaption { margin: 0 0 6px; color: var(--info); font-size: 13px; }
.md figure.sound figcaption:empty { display: none; }
.md audio { display: block; width: 100%; height: 34px; color-scheme: dark; }
.md a.file { color: var(--info); border-bottom-color: var(--mark); }
.footnote { margin: 48px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px; }
.footnote p:last-child { margin: 0; }

/* every field's edge readable on the dark (3:1) */
.field input:not([type=checkbox]), .field select, .field textarea, .bar input { border-bottom-color: var(--edge); }
.field input:focus, .field select:focus, .field textarea:focus, .bar input:focus { border-color: var(--mark); }
/* a part behind a code: one field, its tick once something is in it */
.key { display: flex; align-items: center; gap: 10px; max-width: 360px; margin: 6px 0 0; border-bottom: 1px solid var(--edge); transition: border-color .15s ease; }
.key:focus-within { border-color: var(--mark); }
.key input { flex: 1; min-width: 0; padding: 8px 2px; border: 0; background: transparent; color: var(--bright); font: inherit; font-size: 15px; letter-spacing: .06em; outline: none; }
.key input::placeholder { color: var(--dim); letter-spacing: 0; }
main .key button.tick { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; color: var(--info); }
main .key button.tick:hover { color: var(--bright); border: 0; }
main .key button.tick.hidden { display: none; }
.key .tick svg { width: 16px; height: 16px; }
.keysaid { min-height: 1.6em; margin: 8px 0 0; font-size: 13px; }
.keysaid.bad { color: var(--red); }

/* who sees a part: the chosen word lit, the others dim */
.modes { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin: 4px 0 18px; }
.modes > span { color: var(--dim); font-size: 11.5px; margin-right: 4px; }
/* the workspace's color for every button outranks a plain one here, so its own chain is repeated */
main .modes button:not(.tab):not(.chapters > button) { color: var(--dim); }
main .modes button:not(.tab):not(.chapters > button):hover { color: var(--bright); }
main .modes button.on:not(.tab):not(.chapters > button) { color: var(--bright); border-color: var(--mark); }
.modes.wrong > span { color: var(--red); }
.fold { margin: 26px 0 0; }
.fold > summary { color: var(--dim); cursor: pointer; list-style: none; font-size: 13px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary:hover, .fold[open] > summary { color: var(--bright); }
.fold > .form { margin-top: 12px; }

/* an action that can't be taken keeps its place, dim: the workspace's own color for buttons outranks its disabled one */
main button:not(.tab):not(.chapters > button):disabled, main button:not(.tab):not(.chapters > button):disabled:hover { color: var(--faint); border-color: transparent; cursor: default; }
/* moves and removes as bare icons: brighter on hover, red for a remove, its words while it asks twice */
main button:not(.tab):not(.chapters > button).glyph { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 3px; border: 0; color: var(--text); }
main button:not(.tab):not(.chapters > button).glyph:hover { border: 0; color: var(--bright); }
main button:not(.tab):not(.chapters > button).glyph.drop:hover, main button.glyph[data-armed] { color: var(--red); }
main button.glyph[data-armed] { font-size: 12px; }
main button:not(.tab):not(.chapters > button).glyph:disabled { color: var(--faint); cursor: default; }
.glyph svg { width: 15px; height: 15px; }
.moves:has(.glyph) { gap: 2px; align-items: center; }
/* tabs: a group's name over its pages, each row with its moves on the right */
.tabset { max-width: 680px; margin: 0 0 26px; }
.tabhead { display: flex; align-items: baseline; gap: 14px; min-height: 34px; }
.tabhead b { color: var(--bright); font-family: var(--title); font-size: 15px; font-weight: 600; }
.tabhead input { flex: 1; min-width: 0; padding: 6px 2px; border: 0; border-bottom: 1px solid var(--edge); background: transparent; color: var(--bright); font: 600 15px var(--title); outline: none; transition: border-color .15s ease; }
.tabhead input:focus { border-color: var(--mark); }
.tabhead input::placeholder { color: var(--dim); font: 400 13px var(--mono); }
.tabrow { display: flex; align-items: baseline; gap: 12px; min-height: 36px; padding: 8px 2px 0; border-bottom: 1px solid var(--line); }
.tabrow > a { min-width: 0; overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; transition: color .15s ease; }
.tabrow > a:hover { color: var(--bright); }
.tabrow small { flex: none; color: var(--dim); font-size: 11.5px; }
.tabhead .moves, .tabrow .moves { flex: none; margin-left: auto; padding: 0; font-size: 13px; }
main .tabset > .add { margin: 10px 0 0; }
.tabsadd { display: flex; gap: 18px; }

/* codes: made here, each with what it opens and how many it let in */
.opens { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin: 2px 0 6px; }
.opens > span { color: var(--dim); font-size: 11.5px; }
.codes { margin: 26px 0 0; }
.codes .row { grid-template-columns: minmax(120px, 220px) 1fr; }
.codes .row code { color: var(--bright); font-size: 13.5px; letter-spacing: .04em; overflow-wrap: anywhere; }
.codes .row > span { color: var(--dim); font-size: 13px; }
.codes .info { color: var(--info); }
.codes .ended { color: var(--amber); }
.codes .acts { display: inline-flex; gap: 14px; margin-left: 14px; }
main .codes .acts button { margin: 0; font-size: 12.5px; }
.made input { color: var(--info); }

/* a link's mark beside its words, or alone in a row of marks; its brand's color on hover, lifted toward white */
.links a { display: flex; align-items: center; gap: 9px; }
.links a > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.links svg.mark { flex: none; width: 15px; height: 15px; transition: color .15s ease, filter .15s ease; }
.links a:hover svg.mark { color: color-mix(in oklab, var(--c, var(--bright)) 78%, white); }
.links .marks { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 4px 0 0; }
.links .marks a.alone { padding: 4px; }
.links .marks svg.mark { width: 18px; height: 18px; }

/* the look's layers: what lies behind every page, what drifts over it, the page above both */
#back, #drift { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#drift { z-index: 1; width: 100%; height: 100%; }
#back > * { position: absolute; inset: 0; width: 100%; height: 100%; }
#back img, #back video { object-fit: cover; transform: scale(1.06); }
#back .back-dim { background: #000; }
.page { z-index: 2; }
body:has(#back) nav { background: color-mix(in srgb, var(--rail) 76%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.brand img.cut { border-radius: 0; }

/* the name: its font, its second color and how it moves */
.hero .name { background-image: linear-gradient(100deg, var(--bright), var(--hi) 55%, var(--end, var(--name-end))); }
body.lblend { --end: var(--blend); }
body:is(.lblend, .lm-shimmer, .lm-rainbow) .brand b { background-image: linear-gradient(100deg, var(--bright), var(--hi) 55%, var(--end, var(--name-end))); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.lf-mono :is(.brand b, .hero .name) { font-family: var(--mono); letter-spacing: -.03em; }
body.lf-serif :is(.brand b, .hero .name) { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-weight: 600; letter-spacing: -.02em; }
body.lf-sans :is(.brand b, .hero .name) { font-family: system-ui, "Segoe UI", "Helvetica Neue", Arial, sans-serif; letter-spacing: -.03em; }
body.lf-rounded :is(.brand b, .hero .name) { font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif; letter-spacing: -.02em; }
body.lf-script :is(.brand b, .hero .name) { font-family: "Segoe Script", "Snell Roundhand", "Brush Script MT", cursive; font-weight: 400; letter-spacing: 0; }
body.lf-wide :is(.brand b, .hero .name) { letter-spacing: .14em; font-stretch: expanded; }
body[class*="lm-"] .brand b { display: inline-block; }
body.lm-shimmer :is(.brand b, .hero .name) { background-image: linear-gradient(100deg, var(--bright), var(--hi) 25%, var(--end, var(--name-end)) 50%, var(--hi) 75%, var(--bright)); background-size: 200% 100%; animation: lm-shimmer 6s linear infinite; }
body.lm-pulse :is(.brand b, .hero .name) { animation: lm-pulse 3.2s ease-in-out infinite; }
body.lm-wave :is(.brand b, .hero .name) { animation: lm-wave 4s ease-in-out infinite; }
body.lm-rainbow :is(.brand b, .hero .name) { animation: lm-rainbow 9s linear infinite; }
body.lm-glow :is(.brand b, .hero .name) { animation: lm-glow 3s ease-in-out infinite; }
body.lm-glitch :is(.brand b, .hero .name) { animation: lm-glitch 3.4s steps(1) infinite; }
body.lm-float :is(.brand b, .hero .name) { animation: lm-float 4.5s ease-in-out infinite alternate; }
body.lm-flicker :is(.brand b, .hero .name) { animation: lm-flicker 5s linear infinite; }
@keyframes lm-shimmer { to { background-position: -200% 0; } }
@keyframes lm-pulse { 50% { opacity: .7; transform: scale(.985); } }
@keyframes lm-wave { 25% { transform: translateY(-2px) skewX(-4deg); } 75% { transform: translateY(2px) skewX(4deg); } }
@keyframes lm-rainbow { to { filter: hue-rotate(360deg); } }
@keyframes lm-glow { 0%, 100% { filter: drop-shadow(0 0 3px var(--glow-faint)); } 50% { filter: drop-shadow(0 0 16px var(--glow)); } }
@keyframes lm-glitch { 0% { transform: none; filter: none; } 92% { transform: translate(2px, -1px); filter: drop-shadow(-2px 0 #ff2a6d) drop-shadow(2px 0 #05d9e8); } 94% { transform: translate(-2px, 1px); } 96% { transform: none; filter: none; } }
@keyframes lm-float { to { transform: translateY(-6px); } }
@keyframes lm-flicker { 0%, 18%, 22%, 54%, 58%, 100% { opacity: 1; } 20%, 56% { opacity: .4; } }

/* panels: clear, tinted toward the accent, or frosted over the background */
body.lfill-tint nav { background: color-mix(in srgb, var(--mark) 7%, var(--rail)); }
body.lfill-tint :is(.cardblock, .musicblock, .statblock.look-tiles .sb-item, .md pre, .md figure.sound, .callout) { background: color-mix(in srgb, var(--mark) 10%, var(--panel)); }
body.lfill-frosted nav { background: color-mix(in srgb, var(--rail) 50%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); }
body.lfill-frosted :is(.cardblock, .musicblock, .statblock.look-tiles .sb-item, .md pre, .md figure.sound) { background: color-mix(in srgb, var(--panel) 55%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
/* how a page comes in, and links that glow */
body.lenter-fade main.entering { animation: en-fade .45s ease-out both; }
body.lenter-rise main.entering { animation: en-rise .55s cubic-bezier(.2, .7, .2, 1) both; }
body.lenter-blur main.entering { animation: en-blur .6s ease-out both; }
@keyframes en-fade { from { opacity: 0; } }
@keyframes en-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes en-blur { from { opacity: 0; filter: blur(8px); } }
body.lglow :is(.links a, .md a, .tab):hover { text-shadow: 0 0 12px var(--glow); }
body.lglow .links a:hover svg.mark { filter: drop-shadow(0 0 6px color-mix(in oklab, var(--c, var(--mark)) 70%, transparent)); }

/* blocks: a card */
.cardblock { --c: var(--mark); --ci: color-mix(in oklab, var(--c) 55%, white); position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; max-width: 560px; margin: 6px 0 16px; padding: 12px 14px; border-radius: var(--radius); background: var(--panel); transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.cardblock:not(:has(.cb-pic)) { grid-template-columns: minmax(0, 1fr); }
.cardblock .cb-pic { width: 84px; height: 84px; object-fit: cover; border-radius: 6px; }
.cardblock .cb-words { display: grid; gap: 3px; min-width: 0; }
.cardblock .cb-site { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 11.5px; }
.cardblock .cb-site svg { width: 13px; height: 13px; color: var(--ci); }
.md .cardblock .cb-title, .cardblock .cb-title { color: var(--bright); border: 0; font: 600 15px/1.35 var(--title); }
.cardblock a.cb-title:hover { color: var(--ci); }
.cardblock.linked a.cb-title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cardblock.linked:hover { background-color: var(--raised); }
.cardblock .cb-line { color: var(--text); font-size: 13px; }
.cardblock .cb-foot { color: var(--dim); font-size: 11.5px; }
.cardblock .cb-gos { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 6px 0 0; }
.md .cardblock .cb-go, .cardblock .cb-go { display: inline-flex; align-items: center; gap: 5px; border: 0; color: var(--ci); font-size: 13px; }
.cardblock .cb-go svg { width: 13px; height: 13px; transition: transform .15s ease; }
.cardblock .cb-go:hover { color: var(--bright); }
.cardblock .cb-go:hover svg { transform: translateX(2px); }
.cardblock.look-wide, .cardblock.look-picture { grid-template-columns: minmax(0, 1fr); }
.cardblock.look-wide .cb-pic { width: 100%; height: auto; max-height: 280px; aspect-ratio: 16 / 9; }
.cardblock.look-picture { padding: 0; overflow: hidden; }
.cardblock.look-picture .cb-pic { width: 100%; height: auto; max-height: 360px; border-radius: 0; }
.cardblock.look-picture .cb-words { position: absolute; inset: auto 0 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); }
.cardblock.look-picture:not(:has(.cb-pic)) .cb-words { position: static; padding: 12px 14px; background: none; }
.cardblock.look-compact { display: inline-grid; padding: 7px 14px; margin-right: 10px; }
.cardblock.look-compact .cb-words { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.cardblock.edge-side { border-left: 3px solid var(--c); border-radius: 3px var(--radius) var(--radius) 3px; }
.cardblock.edge-full { box-shadow: inset 0 0 0 1px var(--c); }
.cardblock.edge-glow { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 0 24px color-mix(in srgb, var(--c) 28%, transparent); }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.cardblock.move-wind::before { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; background: conic-gradient(from var(--spin), transparent 0 55%, var(--c) 75%, transparent 95%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; animation: cb-wind 7s linear infinite; }
.cardblock.move-shimmer::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .06) 50%, transparent 60%) 0 0 / 250% 100%; pointer-events: none; animation: cb-shimmer 5s linear infinite; }
.cardblock.move-float { animation: cb-float 5s ease-in-out infinite alternate; }
.cardblock.move-pulse { animation: cb-pulse 3.4s ease-in-out infinite; }
.cardblock.move-lift:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, .35), 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
@keyframes cb-wind { to { --spin: 360deg; } }
@keyframes cb-shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes cb-float { to { transform: translateY(-4px); } }
@keyframes cb-pulse { 50% { box-shadow: 0 0 22px color-mix(in srgb, var(--c) 32%, transparent); } }

/* blocks: numbers, in tiles, a line, one big one, a list or meters */
.statblock { --c: var(--mark); --ci: color-mix(in oklab, var(--c) 55%, white); margin: 6px 0 16px; }
.statblock .sb-title { display: block; margin: 0 0 8px; color: var(--dim); font-size: 11.5px; font-weight: 400; letter-spacing: .04em; }
.statblock .sb-items { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.statblock .sb-item { display: inline-flex; align-items: baseline; gap: 7px; min-width: 0; }
.statblock .sb-n { color: var(--ci); font-weight: 400; font-variant-numeric: tabular-nums; }
.statblock .sb-item small { color: var(--dim); font-size: 12.5px; }
.statblock .sb-item.said { display: inline; color: var(--text); }
.statblock.look-tiles .sb-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.statblock.look-tiles .sb-item { display: grid; gap: 2px; padding: 12px 14px; border-top: 2px solid var(--c); border-radius: 2px 2px var(--radius) var(--radius); background: var(--panel); }
.statblock.look-tiles .sb-n { color: var(--bright); font: 600 24px/1.2 var(--title); }
.statblock.look-big .sb-items { display: grid; gap: 14px; }
.statblock.look-big .sb-item { display: grid; gap: 0; }
.statblock.look-big .sb-n { color: var(--bright); font: 700 clamp(38px, 6vw, 56px)/1.05 var(--title); letter-spacing: -.03em; }
.statblock.look-list .sb-items, .statblock.look-meter .sb-items { display: grid; gap: 0; max-width: 520px; }
.statblock.look-list .sb-item, .statblock.look-meter .sb-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.statblock.look-list .sb-item .sb-n, .statblock.look-meter .sb-item .sb-n { order: 2; text-align: right; }
.statblock.look-list .sb-item small, .statblock.look-meter .sb-item small { order: 1; font-size: 13px; }
.statblock.look-meter .sb-item { border: 0; padding: 6px 0; }
.statblock .sb-meter { order: 3; grid-column: 1 / -1; position: relative; height: 3px; border-radius: 2px; background: var(--line); }
.statblock .sb-meter > i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: inherit; background: var(--c); transition: width .7s ease; }
.statblock .sb-meter > i::after { content: ""; position: absolute; top: 50%; right: -4px; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--ci); }
.statblock .sb-note { margin: 8px 0 0; color: var(--amber); font-size: 12px; }
.statblock .sb-note a { color: var(--info); border-bottom: 1px solid var(--mark); }

/* blocks: songs, played one at a time across the page */
.musicblock { --c: var(--mark); --ci: color-mix(in oklab, var(--c) 55%, white); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 560px; margin: 6px 0 16px; padding: 12px 14px; border-radius: var(--radius); background: var(--panel); }
.musicblock.empty { color: var(--dim); }
.musicblock.look-cover:has(.mb-cover) { grid-template-columns: 96px minmax(0, 1fr); align-items: start; }
.musicblock .mb-cover { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; }
.musicblock .mb-side { min-width: 0; }
.musicblock .mb-title { display: block; margin: 0 0 4px; color: var(--bright); font: 600 15px/1.35 var(--title); }
.musicblock .mb-now { display: flex; align-items: center; gap: 2px; }
main .musicblock button:not(.tab):not(.chapters > button) { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; color: var(--text); }
main .musicblock button:not(.tab):not(.chapters > button):hover { border: 0; color: var(--bright); }
main .musicblock button.mb-play:not(.tab) { color: var(--ci); }
.musicblock button svg { width: 15px; height: 15px; }
.musicblock .mb-play svg { width: 18px; height: 18px; }
.musicblock .mb-what { flex: 1; min-width: 0; margin-left: 8px; overflow: hidden; color: var(--bright); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.musicblock .mb-time { flex: none; color: var(--dim); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.musicblock .mb-line { position: relative; height: 3px; margin: 8px 0 4px; border-radius: 2px; background: var(--line); cursor: pointer; }
.musicblock .mb-line::before { content: ""; position: absolute; inset: -7px 0; }
.musicblock .mb-line > i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: inherit; background: var(--c); pointer-events: none; }
.musicblock .mb-line > i::after { content: ""; position: absolute; top: 50%; right: -4px; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--ci); transition: transform .15s ease; }
.musicblock .mb-line:hover > i::after { transform: scale(1.3); background: var(--bright); }
.musicblock .mb-list { max-height: 264px; margin: 8px 0 0; padding: 0; overflow-y: auto; list-style: none; counter-reset: song; scrollbar-width: thin; scrollbar-color: var(--thumb) transparent; }
main .musicblock .mb-list button:not(.tab):not(.chapters > button) { display: flex; justify-content: flex-start; gap: 12px; width: 100%; height: auto; padding: 5px 2px; text-align: left; font-size: 13px; }
.musicblock .mb-list button::before { counter-increment: song; content: counter(song); flex: none; width: 18px; color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; }
main .musicblock .mb-list button.now:not(.tab) { color: var(--ci); }
.musicblock .mb-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the look's own fields: colors, the volume line, a link's mark, folds that say what they are set to */
.fold > summary { display: flex; align-items: center; flex-wrap: wrap; }
.fold > summary::before { content: ""; flex: none; width: 5px; height: 5px; margin: 0 12px 0 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s ease; }
/* pointing down its point sits low, so it is lifted to the words' middle */
.fold[open] > summary::before { content: ""; transform: translateY(-2px) rotate(45deg); }
.fold > summary .info { margin-left: 12px; color: var(--info); }
.fold + .fold { margin-top: 16px; }
.foldin { margin: 14px 0 8px 18px; }
.foldin > .modes:first-child { margin-top: 0; }
/* a color is a small chip beside its value, the value under a line like every other field */
.field.hue .swatch { display: flex; align-items: center; gap: 9px; min-height: 32px; border-bottom: 1px solid var(--edge); }
.field.hue input[type=color] { flex: none; width: 13px; height: 13px; padding: 0; border: 0; border-radius: 3px; background: none; cursor: pointer; }
.field.hue input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.field.hue input[type=color]::-webkit-color-swatch { border: 1px solid rgba(255, 255, 255, .22); border-radius: 3px; }
.field.hue input[type=color]::-moz-color-swatch { border: 1px solid rgba(255, 255, 255, .22); border-radius: 3px; }
.field.hue code { flex: 1; min-width: 0; }
main .field.hue .glyph:not(.tab) { min-width: 20px; height: 20px; }
.field.hue input[type=color]:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; }
.field.hue code { font-size: 12.5px; }
.huerow { display: flex; align-items: end; gap: 6px; }
.huerow > .field { flex: 1; }
.field.slide .rail { display: flex; align-items: center; gap: 12px; min-height: 32px; }
.field.slide input[type=range] { flex: 1; min-width: 0; height: 16px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.field.slide input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, var(--mark) var(--p, 0%), var(--line) var(--p, 0%)); }
.field.slide input[type=range]::-webkit-slider-thumb { width: 8px; height: 8px; margin-top: -2.5px; border: 0; border-radius: 50%; background: var(--hi); -webkit-appearance: none; transition: transform .15s ease; }
.field.slide input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.35); background: var(--bright); }
.field.slide input[type=range]:focus-visible { outline: none; }
.field.slide input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--soft); }
.field.slide input[type=range]::-moz-range-track { height: 3px; border-radius: 2px; background: var(--line); }
.field.slide input[type=range]::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--mark); }
.field.slide input[type=range]::-moz-range-thumb { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--hi); }
.field.slide code { flex: none; min-width: 44px; font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }
.form.linkrow { grid-template-columns: 20px minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr) auto auto; align-items: center; }
.linkmark { display: grid; place-items: center; height: 35px; }
.linkmark svg { width: 16px; height: 16px; color: var(--text); }
.linkmark .tinted svg { color: color-mix(in oklab, var(--c, var(--text)) 78%, white); }
.form.linkrow .field.tick { white-space: nowrap; }
.field select { min-height: 35px; }
.form.linkrow .moves { justify-content: flex-end; }
.cardedit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); align-items: start; gap: 22px 34px; }
.cardedit .cardnow { position: sticky; top: 20px; }
.server { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
#server p { margin: 0 0 4px; font-size: 13px; }
#server .info { color: var(--info); }
#server .hold { color: var(--amber); }
#server .good { color: var(--green); }
#server .bad { color: var(--red); }
#server a { color: var(--info); border-bottom: 1px solid var(--mark); }
#server a:hover { color: var(--bright); }

/* a link to the site as discord unfolds it: discord's own colors, so it reads as it will there */
.cardnow { max-width: 440px; padding: 14px 16px; border-radius: var(--radius); background: #313338; }
.dc { --c: #4f8ff7; display: grid; gap: 8px; padding: 12px 14px 14px 16px; border-left: 4px solid var(--c); border-radius: 4px; background: #2b2d31; color: #dbdee1; font: 14px/1.375 "gg sans", "Noto Sans", "Segoe UI", system-ui, sans-serif; }
.dc-head { display: grid; gap: 4px; }
.dc-head.beside { grid-template-columns: minmax(0, 1fr) 80px; gap: 12px; }
.dc-title { color: #00a8fc; font-size: 20px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.dc-head p { margin: 4px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.dc-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.dc-big { width: 100%; max-height: 300px; object-fit: cover; border-radius: 8px; }
.dc-foot { color: #949ba4; font-size: 12px; }
.dc-gos { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-go { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 14px; border-radius: 3px; background: #4e5058; color: #fff; font-size: 14px; font-weight: 500; }
.dc-go svg { width: 13px; height: 13px; }

/* the block builder, over the words it writes into */
.builder { margin: 0 0 12px; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.bhead { display: flex; align-items: baseline; gap: 14px; margin: 0 0 12px; }
.bhead b { color: var(--bright); font-family: var(--title); font-weight: 600; }
.bhead .modes { margin: 0; }
.bbody { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 380px); align-items: start; gap: 18px 30px; }
.bnow { position: sticky; top: 16px; min-width: 0; }
.bnow > * { margin-top: 0 !important; }
.bform .act { margin: -4px 0 14px; }
.bform > p.dim { margin: 0 0 8px; font-size: 12px; }
.brow { display: flex; align-items: end; gap: 10px; margin: 0 0 8px; }
.brow input, .brow select { flex: 1; min-width: 0; padding: 6px 2px; border: 0; border-bottom: 1px solid var(--edge); border-radius: 0; background: transparent; color: var(--bright); font: inherit; font-size: 13.5px; outline: none; transition: border-color .15s ease; }
.brow input:focus, .brow select:focus { border-color: var(--mark); }
.brow input::placeholder { color: var(--dim); }
.brow select option { background: var(--panel); color: var(--text); }
.brow small { flex: none; max-width: 30%; overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.brow .moves { flex: none; display: inline-flex; }
.builder > .act { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 12px 0 0; }

@media (max-width: 720px) {
  .tabgroup, .tabgap, .tab .lock, .tab small { display: none; }
  .links .marks { display: contents; }
  .form.linkrow { grid-template-columns: minmax(0, 1fr); }
  .linkmark { display: none; }
  .cardedit, .bbody { grid-template-columns: minmax(0, 1fr); }
  .cardedit .cardnow, .bnow { position: static; }
  .foldin { margin-left: 0; }
  nav #foot { margin: 2px 0 4px; padding: 0 2px; }
  .own { display: contents; }
  .links { display: flex; gap: 2px 14px; margin: 2px 2px 4px; overflow-x: auto; scrollbar-width: none; }
  .links a { padding: 2px 0; font-size: 12px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero .art { justify-self: center; height: min(300px, 46vh); order: -1; }
  .codes .row { grid-template-columns: 1fr; }
  .codes .acts { display: flex; margin: 4px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .art, .cardblock, .cardblock::before { animation: none !important; }
  .cardblock.move-lift:hover { transform: none; }
}

/* a field names itself in its placeholder; one that always holds something says its name on its own line, at its left */
.form { align-items: center; }
.form .field.tick { align-self: center; padding-bottom: 0; }
.form .moves { align-self: center; }
.field b.name { flex: none; color: var(--dim); font-size: 12.5px; font-weight: 400; }
.field.picture { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-height: 35px; }
.field.picture img { width: 40px; height: 40px; }
.field.hue b.name { margin-right: 2px; }
.field.slide b.name { min-width: 64px; }
.field.word { grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; }
.field.word .back { margin: 0; }
.form.linkrow .field.tick { padding: 0; }
@media (max-width: 720px) {
  .field.word { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
/* the builder's own words box is a field like the rest, not the page's big editor it sits in */
.mdedit .builder textarea { min-height: 0; padding: 6px 2px; border: 0; border-bottom: 1px solid var(--edge); border-radius: 0; background: transparent; font: 14px/1.5 var(--mono); }
.mdedit .builder textarea:focus { border-color: var(--mark); }
/* the one action that matters stays lit, past the workspace's color for every button */
main button.lit:not(.tab):not(.chapters > button) { color: var(--bright); border-color: var(--mark); }
main button.lit:not(.tab):not(.chapters > button):hover { color: var(--hi); text-shadow: 0 0 14px var(--glow-strong); }
main button.lit:not(.tab):not(.chapters > button):disabled { color: var(--faint); border-color: transparent; text-shadow: none; }
