/* Brand look: deep navy, white and orange, a faint network behind everything. */
:root { --bg: #050d1c; --card: #0a1630; --ink: #eaf0ff; --mut: #8d9bbb; --line: #17284a; --heart: #f59a23; --acc: #f59a23; --drip: #f59a23; }
* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a, summary, [role=button] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg) radial-gradient(1200px 600px at 50% -10%, rgba(40, 90, 200, .22), transparent 70%), radial-gradient(900px 500px at 100% 40%, rgba(245, 154, 35, .06), transparent 70%); background-attachment: fixed; color: var(--ink); font: 400 15px/1.5 'IBM Plex Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; gap: 8px; }
.tabs { display: flex; gap: 6px; }
.tab { font: 500 13px 'IBM Plex Sans', sans-serif; color: var(--mut); background: transparent; border: 1px solid transparent; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { color: var(--ink); border-color: var(--line); background: var(--card); }
.tab.quiet[aria-pressed="false"] { text-decoration: line-through; }
.tab span { font: 600 11px 'IBM Plex Mono', monospace; color: var(--heart); margin-left: 3px; }
main { max-width: 620px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right)) calc(80px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
main.wide { max-width: 1120px; }
.intro { color: var(--mut); font-size: 14px; margin: 18px 4px 20px; max-width: 52ch; }
.card { margin: 0 auto 56px; scroll-margin-top: 72px; width: min(100%, max(300px, calc((100vh - 160px) * 0.8))); width: min(100%, max(300px, calc((100dvh - 160px) * 0.8))); }
.art { position: relative; width: 100%; aspect-ratio: 4 / 5; margin: 0 auto; border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: 0 1px 0 var(--line), 0 18px 50px -24px rgba(0,0,0,.55); }
.art img, .art canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.art canvas { opacity: 0; transition: opacity .7s ease; }
.art canvas.on { opacity: 1; }
.art img { opacity: 0; transition: opacity .5s ease; }
.art img.has { opacity: 1; }
.art.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--ink) 9%, transparent) 50%, transparent 80%); background-size: 220% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .art.skeleton::after { animation: none; } .art canvas { transition: none; } }
.meta { padding: 14px 4px 0; }
.row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.title { font: italic 400 26px/1.15 'Instrument Serif', Georgia, serif; margin: 0; }
.no { font: 600 11px 'IBM Plex Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); margin: 0 0 4px; }
.blurb { margin: 8px 0 12px; color: var(--mut); }
.heart { flex: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--mut); display: grid; place-items: center; cursor: pointer; transition: transform .15s ease, color .15s ease, border-color .15s ease; }
.heart svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.heart:hover { color: var(--heart); }
.heart[aria-pressed="true"] { color: var(--heart); border-color: color-mix(in srgb, var(--heart) 55%, var(--line)); }
.heart[aria-pressed="true"] svg { fill: var(--heart); }
.heart.pop { animation: pop .32s ease; }
@keyframes pop { 40% { transform: scale(1.28); } }
.acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { font: 500 12px 'IBM Plex Sans', sans-serif; color: var(--mut); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.chip:hover { color: var(--ink); border-color: var(--mut); }
.tags { font: 400 11px 'IBM Plex Mono', monospace; color: var(--mut); }
.note { font: 500 12px 'IBM Plex Sans', sans-serif; color: var(--acc); margin: 0 4px 8px; }
.sentinel { text-align: center; color: var(--mut); font: 400 12px 'IBM Plex Mono', monospace; padding: 24px 0; }
#gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 20px 12px; }
@media (min-width: 640px) { #gal-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 16px; } }
.tile { cursor: pointer; min-width: 0; }
.tile .art { max-height: none; }
.tile .art.skeleton { min-height: 120px; }
.trow { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-top: 8px; }
.tile .title { font-size: 18px; min-width: 0; overflow-wrap: anywhere; }
.hc { display: flex; align-items: center; gap: 6px; flex: none; }
.hc .n { font: 600 12px 'IBM Plex Mono', monospace; color: var(--mut); }
.heart.small { width: 34px; height: 34px; }
.heart.small svg { width: 17px; height: 17px; }
.gal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 26px 4px 0; }
.gal-title { margin: 0; font: italic 400 34px/1.1 'Instrument Serif', Georgia, serif; }
.seg { display: inline-flex; gap: 8px; }
.chip[aria-pressed="true"] { color: var(--ink); border-color: var(--mut); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.gal-more { display: grid; justify-items: center; padding: 26px 0 8px; }
.gal-more .chip[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 94%, #000); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); overflow: auto; overscroll-behavior: contain; }
.lightbox[hidden] { display: none; }
.lb-inner { position: relative; width: min(100%, 560px, max(280px, calc((100vh - 220px) * 0.8))); width: min(100%, 560px, max(280px, calc((100dvh - 220px) * 0.8))); }
.close { position: absolute; top: -6px; right: -6px; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ---- phones: slim header, thumb-reach tab bar at the bottom ---- */
@media (max-width: 640px) {
  .top { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }          /* a filter would trap the fixed tab bar inside the header */
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); background: color-mix(in srgb, var(--bg) 94%, #000); border-top: 1px solid var(--line); }
  .tab { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 14px; padding: 0 6px; text-align: center; }
  .tab.quiet[aria-pressed="false"] { text-decoration: none; opacity: .55; }
  .tab.quiet { text-decoration: none; }
  main { padding-left: max(10px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .title { font-size: 23px; }
  .hero { padding: 18px 0 2px; gap: 8px; }
  .hero .tagline { letter-spacing: .24em; font-size: 11px; }
  .card { margin-bottom: 40px; }
  .gal-head { padding-top: 18px; }
  .gal-title { font-size: 28px; }
}
@media (max-width: 380px) { .tab { font-size: 13px; } }

/* ---- touch screens: every control is at least a comfortable fingertip ---- */
@media (pointer: coarse) {
  .tab { min-height: 44px; }
  .chip { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; }
  .heart, .heart.small { width: 44px; height: 44px; }
  .heart.small svg { width: 20px; height: 20px; }
  .close { width: 44px; height: 44px; top: -8px; right: -8px; }
  .tile .hc { gap: 2px; }
}

/* ---- big screens: the art stays large and the words sit beside it ---- */
@media (min-width: 1000px) and (min-height: 620px) {
  main { max-width: 1060px; }
  main.wide { max-width: 1240px; }
  .card { display: grid; grid-template-columns: min(100%, max(320px, calc((100dvh - 160px) * 0.8))) minmax(0, 1fr); column-gap: 40px; align-items: start; width: 100%; margin-bottom: 72px; }
  .card .note { grid-column: 1 / -1; }
  .card .art { grid-column: 1; }
  .card .meta { grid-column: 2; padding-top: 6px; position: sticky; top: 96px; }
  .title { font-size: 32px; }
  .blurb { font-size: 16px; line-height: 1.6; }
}
/* a short landscape screen (a phone on its side): a slim header, art that fits the height */
@media (max-height: 520px) {
  .hero { display: none; }
  .top { padding-top: max(4px, env(safe-area-inset-top)); padding-bottom: 4px; }
  .card { width: min(100%, max(240px, calc((100dvh - 100px) * 0.8))); }
}

body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg stroke='%234a6ad0' stroke-opacity='.18' fill='none'%3E%3Cpath d='M20 40 L90 18 L150 70 L200 30 M90 18 L70 120 L150 70 M70 120 L30 190 M70 120 L140 170 L200 140 M150 70 L140 170'/%3E%3C/g%3E%3Cg fill='%238fb0ff' fill-opacity='.35'%3E%3Ccircle cx='20' cy='40' r='2'/%3E%3Ccircle cx='90' cy='18' r='2.4'/%3E%3Ccircle cx='150' cy='70' r='2.4'/%3E%3Ccircle cx='200' cy='30' r='2'/%3E%3Ccircle cx='70' cy='120' r='2.6'/%3E%3Ccircle cx='30' cy='190' r='2'/%3E%3Ccircle cx='140' cy='170' r='2.4'/%3E%3Ccircle cx='200' cy='140' r='2'/%3E%3C/g%3E%3C/svg%3E"); }
.mark { margin: 0; line-height: 0; }
.wordmark { display: block; overflow: visible; }
.wordmark .syn { stroke: var(--ink); }
.wordmark .drip { stroke: var(--drip); filter: drop-shadow(0 0 5px rgba(245, 154, 35, .55)); }
.brand h1.mark { font-size: 0; }
.hero { display: grid; justify-items: center; gap: 12px; padding: 34px 0 6px; }
.hero .tagline { margin: 0; font: 500 12px 'IBM Plex Mono', monospace; letter-spacing: .32em; text-transform: uppercase; color: var(--mut); }
.hero .wordmark { max-width: 100%; height: auto; width: min(560px, 86vw); }
a.tab { text-decoration: none; }
.tabs .tab { display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; }
.chip span { font: 600 11px 'IBM Plex Mono', monospace; color: var(--heart); margin-left: 6px; }
.tab { white-space: nowrap; }
.hero-links { margin: 0; font-size: 12.5px; color: var(--mut); }
.hero-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.hero-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mut); text-decoration: none; padding: 0 10px; }
.hero-links a:hover { color: var(--ink); text-decoration: underline; }
.hero-links i { font-style: normal; opacity: .5; }

/* The share menu (src/ui/share.js). It borrows the colours of whichever page it is on: the Drip and piece pages use --card/--ink, the Studio uses --panel/--fg. */
.share-btn { display: inline-flex; align-items: center; gap: 6px; font: 500 13px var(--ui, 'IBM Plex Sans', system-ui, sans-serif); color: var(--mut, var(--muted, #8d9bbb)); background: transparent; border: 1px solid var(--line, #17284a); border-radius: 999px; padding: 6px 12px 6px 10px; min-height: 34px; cursor: pointer; }
.share-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.share-btn:hover, .share-btn[aria-expanded="true"] { color: var(--ink, var(--fg, #eaf0ff)); border-color: color-mix(in srgb, var(--acc, var(--accent, #f59a23)) 55%, var(--line, #17284a)); }
.share-scrim { position: fixed; inset: 0; z-index: 90; }
.share-scrim.dim { background: rgba(0, 0, 0, .5); }
.share-menu { position: fixed; z-index: 91; width: 300px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); overflow: auto; padding: 8px; background: var(--card, var(--panel-2, #0a1630)); color: var(--ink, var(--fg, #eaf0ff)); border: 1px solid var(--line, #17284a); border-radius: 14px; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .7); font: 14px/1.35 var(--ui, 'IBM Plex Sans', system-ui, sans-serif); }
.share-menu.sheet { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; border-radius: 18px 18px 0 0; padding: 10px 12px calc(14px + env(safe-area-inset-bottom)); }
.share-menu.busy { opacity: .75; }
.share-title { margin: 4px 8px 6px; font: italic 400 18px/1.2 'Instrument Serif', Georgia, serif; color: var(--ink, var(--fg, #eaf0ff)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-item { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; text-decoration: none; color: inherit; background: transparent; border: 0; border-radius: 10px; padding: 10px 10px; min-height: 44px; cursor: pointer; font: inherit; }
.share-item:hover, .share-item:focus-visible { background: color-mix(in srgb, var(--acc, var(--accent, #f59a23)) 14%, transparent); outline: none; }
.si-l { font-weight: 500; }
.si-h { font-size: 12px; color: var(--mut, var(--muted, #8d9bbb)); }
.share-note { margin: 4px 10px 2px; min-height: 0; font-size: 12.5px; color: var(--mut, var(--muted, #8d9bbb)); }
.share-note:empty { display: none; }
.share-manual { display: block; width: 100%; margin-top: 6px; padding: 8px; font: 12px ui-monospace, Menlo, monospace; color: var(--ink, var(--fg, #eaf0ff)); background: rgba(0, 0, 0, .35); border: 1px solid var(--line, #17284a); border-radius: 8px; }
@media (prefers-reduced-motion: no-preference) { .share-menu { animation: share-in .14s ease-out; } .share-menu.sheet { animation: share-up .2s ease-out; } }
@keyframes share-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes share-up { from { transform: translateY(24px); opacity: .6; } }
.acts .share-btn { margin-left: auto; }
@media (pointer: coarse) { .share-btn { min-height: 44px; padding-inline: 14px; } }

/* Click or tap to attract a flock (src/ui/attract.js). */
.art.lureable { cursor: pointer; }
.art.lure-on { cursor: grabbing; }
.lure-ring { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 0 14px rgba(255, 255, 255, .55); pointer-events: none; z-index: 3; animation: lure-ring .9s ease-out forwards; }
@keyframes lure-ring { from { transform: scale(.5); opacity: 1; } to { transform: scale(7); opacity: 0; } }
.lure-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; pointer-events: none; padding: 6px 14px; border-radius: 999px; background: rgba(5, 13, 28, .72); color: #eaf0ff; font: 500 12.5px 'IBM Plex Sans', system-ui, sans-serif; letter-spacing: .02em; backdrop-filter: blur(4px); transition: opacity .8s ease; }
.lure-hint.gone { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .lure-ring { animation-duration: .01s; } .lure-hint { transition: none; } }

/* A piece on its own page, a technique page, and the plain pages (terms, privacy). Builds on the Drip's look (feed.css) and the share menu (share.css). */
html, body { min-height: 100%; }
a { color: var(--acc); }
.top a.brand { text-decoration: none; color: inherit; display: flex; align-items: center; }
.top .wm { display: inline-block; line-height: 0; color: var(--ink); }
.top a.tab { text-decoration: none; }
.skip { position: absolute; left: -999px; top: 0; background: var(--card); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.piece-page { max-width: 1040px; display: grid; gap: 24px 48px; align-items: start; padding-top: 24px; }
.piece-page .stage { display: grid; gap: 14px; justify-items: center; }
.piece-page .art { width: min(100%, max(300px, calc((100vh - 200px) * 0.8))); width: min(100%, max(300px, calc((100dvh - 200px) * 0.8))); }
.piece-page .acts { justify-content: center; }
.piece-page .acts .share-btn { margin-left: 0; text-decoration: none; }
.art-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--mut); margin: 0; }
.art noscript img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.info h1.title { font-size: clamp(30px, 5vw, 44px); margin: 0 0 12px; }
.info .lead { font-size: 17px; line-height: 1.6; margin: 0 0 18px; max-width: 62ch; }
.info .loved { color: var(--heart); font-size: 14px; margin: 0 0 18px; }
.note { margin: 0 0 18px; max-width: 62ch; }
.note h2 { font: 600 11px 'IBM Plex Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); margin: 0 0 6px; }
.note ul { margin: 0; padding-left: 18px; }
.note li { margin: 0 0 8px; font-size: 15px; line-height: 1.55; color: color-mix(in srgb, var(--ink) 86%, transparent); }
.made-with, .tags, .piece-id { color: var(--mut); font-size: 14px; margin: 0 0 12px; }
.tags span { display: inline-block; margin: 0 6px 6px 0; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; }
.piece-id { font: 11px 'IBM Plex Mono', monospace; letter-spacing: .06em; opacity: .7; }
@media (min-width: 900px) { .piece-page { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); } .piece-page .stage { position: sticky; top: 76px; } .piece-page .art { width: 100%; } }
/* plain pages: terms, privacy, techniques */
.doc { max-width: 760px; padding-top: 28px; }
.doc h1 { font: italic 400 clamp(30px, 5vw, 42px)/1.15 'Instrument Serif', Georgia, serif; margin: 0 0 8px; }
.doc h2 { font: 600 17px/1.3 'IBM Plex Sans', sans-serif; margin: 28px 0 6px; }
.doc p, .doc li { line-height: 1.65; color: color-mix(in srgb, var(--ink) 88%, transparent); }
.doc .sub { color: var(--mut); margin: 0 0 20px; }
.doc ul { padding-left: 20px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 10px 0; }
.doc th, .doc td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; vertical-align: top; }
.doc th { color: var(--mut); font-weight: 500; }
.doc .techlist { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.techlist a { display: block; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); height: 100%; }
.techlist a:hover { border-color: color-mix(in srgb, var(--acc) 55%, var(--line)); }
.techlist b { display: block; font-weight: 500; margin-bottom: 2px; }
.techlist span { font-size: 13px; color: var(--mut); }
.foot { max-width: 1040px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-left)) calc(40px + env(safe-area-inset-bottom)); color: var(--mut); font-size: 13px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--mut); }
.foot a:hover { color: var(--ink); }

/* The wall (src/wall/wall.js): full-screen pieces, names that fade in and out, a settings panel that appears when the screen is touched. */
.wall-page { background: #000; }
.stage-wall { position: relative; height: 100vh; height: 100dvh; background: #000; overflow: hidden; }
body.kiosk { overflow: hidden; }
body.kiosk .top, body.kiosk .doc, body.kiosk .foot { display: none; }
.stage-wall .wall { position: absolute; inset: 0; max-width: none; margin: 0; padding: 0; display: grid; gap: 2px; background: #000; }
.tile { position: relative; overflow: hidden; background: #000; min-width: 0; min-height: 0; touch-action: pan-y; }
.tile canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s ease; }
.tile.on canvas { opacity: 1; }
/* a name under each piece; it and the mark change corner every few minutes (body[data-corner]) so nothing burns into a screen */
.cap { position: absolute; left: 3vmin; bottom: 3vmin; right: auto; top: auto; max-width: min(46ch, 78%); padding: 1.5vmin 2vmin; border-radius: 1.4vmin; background: rgba(5, 13, 28, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #eaf0ff; opacity: 0; transform: translateY(1vmin); transition: opacity 1.2s ease, transform 1.2s ease; pointer-events: none; z-index: 2; }
.cap.show { opacity: 1; transform: none; }
.cap .t { margin: 0; font: italic 400 clamp(20px, 3.4vmin, 60px)/1.12 'Instrument Serif', Georgia, serif; }
.cap .b { margin: .6vmin 0 0; font: 400 clamp(12px, 1.7vmin, 26px)/1.4 'IBM Plex Sans', system-ui, sans-serif; color: rgba(234, 240, 255, .82); }
.cap .m { margin: .6vmin 0 0; font: 600 clamp(10px, 1.3vmin, 18px) 'IBM Plex Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--heart, #f59a23); }
.cap .f { margin: .7vmin 0 0; font: italic 400 clamp(11px, 1.55vmin, 24px)/1.4 'Instrument Serif', Georgia, serif; color: rgba(255, 226, 178, .92); }
.cap .m:empty, .cap .b:empty, .cap .f:empty { display: none; }
body[data-corner="1"] .cap { bottom: auto; top: 3vmin; }
body[data-corner="2"] .cap { bottom: auto; top: 3vmin; left: auto; right: 3vmin; text-align: right; }
body[data-corner="3"] .cap { left: auto; right: 3vmin; text-align: right; }
.wall-mark { position: absolute; right: 2.4vmin; bottom: 2.2vmin; z-index: 3; display: flex; align-items: flex-end; justify-content: flex-end; gap: .35em; color: #fff; opacity: .6; pointer-events: none; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .7)); }
.wall-mark svg { height: clamp(10px, 1.7vmin, 26px); width: auto; display: block; }
.wall-mark .dom { font: 500 clamp(9px, 1.55vmin, 24px)/1 'IBM Plex Mono', monospace; letter-spacing: .2em; text-transform: uppercase; }
body[data-corner="1"] .wall-mark { bottom: auto; top: 2.2vmin; }
body[data-corner="2"] .wall-mark { bottom: auto; top: 2.2vmin; right: auto; left: 2.4vmin; justify-content: flex-start; }
body[data-corner="3"] .wall-mark { right: auto; left: 2.4vmin; justify-content: flex-start; }
.wall-hint, .paused-pill { position: absolute; left: 50%; top: max(14px, env(safe-area-inset-top)); transform: translateX(-50%); z-index: 6; padding: 8px 16px; border-radius: 999px; background: rgba(5, 13, 28, .78); color: #eaf0ff; font: 500 14px 'IBM Plex Sans', system-ui, sans-serif; pointer-events: none; }
.paused-pill { display: none; }
body.paused .paused-pill { display: block; }
.wall-hint[hidden] { display: none; }
.wall-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; margin: 0; color: #cfd8f0; font: 16px/1.5 'IBM Plex Sans', system-ui, sans-serif; }
body.idle .stage-wall { cursor: none; }
/* the settings panel */
.wall-ui { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; width: max-content; max-width: calc(100vw - 24px); padding: 12px; border-radius: 18px; background: rgba(5, 13, 28, .9); border: 1px solid #17284a; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #eaf0ff; box-shadow: 0 18px 60px -12px rgba(0, 0, 0, .8); }
.wall-ui[hidden] { display: none; }
.wall-ui .row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 8px; }
.wall-ui .row:last-of-type { margin-bottom: 0; }
.wall-ui .seg { display: inline-flex; border: 1px solid #17284a; border-radius: 999px; overflow: hidden; }
.wb { min-height: 44px; padding: 0 16px; font: 500 14px 'IBM Plex Sans', system-ui, sans-serif; color: #b9c5e6; background: transparent; border: 1px solid #17284a; border-radius: 999px; cursor: pointer; }
.seg .wb { border: 0; border-radius: 0; }
.wb:hover { color: #fff; }
.wb[aria-pressed="true"] { color: #fff; background: #0e2147; border-color: #f59a23; }
.seg .wb[aria-pressed="true"] { box-shadow: inset 0 -2px 0 #f59a23; border-color: transparent; }
.wb.quiet { border-color: transparent; color: #8d9bbb; }
.ws { min-height: 44px; padding: 0 12px; font: 500 14px 'IBM Plex Sans', system-ui, sans-serif; color: #eaf0ff; background: #0a1630; border: 1px solid #17284a; border-radius: 999px; }
.wall-ui .status { margin: 10px 4px 0; max-width: 62ch; font: 12.5px/1.45 'IBM Plex Sans', system-ui, sans-serif; color: #8d9bbb; text-align: center; }
.wall-ui .status:empty { display: none; }
.wall-ui :focus-visible, .wb:focus-visible { outline: 2px solid #f59a23; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .tile canvas, .cap { transition-duration: .01s; } }
.about { max-width: 760px; margin: 0 auto; padding: 28px max(16px, env(safe-area-inset-left)) 40px; }
/* the site's own bar under the wall is an ordinary bar here, not the phone's fixed tab bar over the art */
.wall-page .top { position: static; }
.wall-page .tabs { position: static; display: flex; flex-wrap: wrap; justify-content: flex-end; padding: 0; background: transparent; border: 0; box-shadow: none; }
.wall-page .tab { min-height: 44px; }
.wall-page .toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
