/* flosaic.com */

:root {
  --plum: #96619e;
  --steel: #8d8994;
  --font-head: 'Chakra Petch', 'Trebuchet MS', sans-serif;
  --font-body: 'Trebuchet MS', 'Fira Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
  --radius: 16px;
  --wrap: 1120px;
  --gutter: 32px;
}

:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #121114;
  --surface: #1b1a1f;
  --surface-2: #26242b;
  --border: #2e2c33;
  --border-strong: #4a4752;
  --text: #ebe9ef;
  --muted: #a29ea8;
  --accent: #b585bc;      /* links and small accent text: readable plum */
  --btn: #96619e;         /* buttons: the exact logo plum */
  --on-btn: #ffffff;
  --code-bg: #1f1d24;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f4f7;
  --surface: #ebe9ee;
  --surface-2: #e2dfe6;
  --border: #dddae2;
  --border-strong: #bdb8c4;
  --text: #18171b;
  --muted: #57535d;
  --accent: #7e4c86;
  --btn: #96619e;
  --on-btn: #ffffff;
  --code-bg: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { font: inherit; color: inherit; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 8px 14px; border-radius: 8px; background: var(--btn); color: var(--on-btn); }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(720px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.page-top { padding-top: 28px; }
.section { padding-top: 52px; }
.section-last { padding-bottom: 64px; }

/* ---------- header and footer ---------- */
.adminbar { background: var(--btn); color: var(--on-btn); font-size: 14px; }
.adminbar .wrap { display: flex; gap: 18px; padding-top: 6px; padding-bottom: 6px; }
.adminbar a { color: var(--on-btn); font-weight: 600; }
html { scroll-padding-top: 96px; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--border); }
.header-row { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; min-width: 0; }
.brand .logo { flex: 0 0 auto; transition: transform .45s cubic-bezier(.45, 0, .2, 1); }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.brand-sep { width: 1px; height: 22px; background: var(--border); }
.brand-tag { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.main-nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; }
.main-nav a { padding: 10px 14px; color: var(--text); text-decoration: none; border-radius: 8px; font-size: 16px; transition: color .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--accent); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--text); border-radius: 0; }
.main-nav a.nav-accent { color: var(--accent); font-weight: 600; }
.theme-toggle { width: 40px; height: 40px; margin-left: 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border); background: transparent; cursor: pointer; }
.theme-toggle:hover { background: var(--surface); }
[data-theme="dark"] .icon-moon, [data-theme="light"] .icon-sun { display: none; }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: 12px; padding-top: 20px; padding-bottom: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); }

/* ---------- shared bits ---------- */
.eyebrow { display: block; margin: 0 0 10px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.eyebrow-accent { color: var(--accent); }
.meta-line { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 28px; }
.chip { display: inline-block; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--border); font-family: var(--font-mono); font-size: 13px; color: var(--muted); text-decoration: none; }
.chip-link { color: var(--accent); }
.badge { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--btn); color: var(--on-btn); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; text-transform: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text); font-weight: 600; text-decoration: none; cursor: pointer; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.btn:hover, .btn:focus-visible { color: var(--accent); border-color: var(--accent); }
.btn-primary { background: var(--btn); border-color: var(--btn); color: var(--on-btn); }
.btn-primary:hover, .btn-primary:focus-visible { background: #a46fac; border-color: #a46fac; color: var(--on-btn); }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.more { font-weight: 600; color: var(--accent); }
.crumbs { margin: 0 0 18px; font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.page-title { margin: 0 0 10px; font-size: clamp(34px, 4.5vw, 52px); line-height: 1.02; letter-spacing: -0.02em; }
.page-lede { margin: 0 0 18px; font-size: 18px; color: var(--muted); }
.title-row { display: flex; align-items: center; gap: 20px; }
.title-icon { width: clamp(48px, 6vw, 64px); height: auto; flex: 0 0 auto; border-radius: 18%; }
.project-meta { margin: 0 0 20px; font-family: var(--font-mono); font-size: 14px; color: var(--muted); }

/* ---------- homepage ---------- */
.hero { padding-top: 44px; padding-bottom: 40px; }
.hero h1 { margin: 0 0 14px; font-size: clamp(52px, 8vw, 88px); line-height: 1.02; letter-spacing: -0.02em; }
.hero .dot-1 { color: var(--plum); }
.hero .dot-2 { color: var(--steel); }
.hero-intro p { margin: 0; max-width: 540px; font-size: 17px; color: var(--muted); }

.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding: 32px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.feature-text { flex: 1 1 380px; min-width: 0; }
.feature h2 { margin: 0 0 10px; font-size: clamp(32px, 4vw, 42px); }
.feature-summary { margin: 0 0 20px; font-size: 16px; color: var(--muted); }
.feature-media { flex: 0 1 320px; min-width: 0; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; border-radius: 14px; overflow: hidden; background: var(--bg); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-media-mark { background: var(--fbg, var(--bg)); }
[data-theme="light"] .feature-media-mark { background: var(--fbg-light, var(--bg)); }
.feature-media-mark img { width: 44%; height: auto; object-fit: contain; }
[data-theme="dark"] .only-light, [data-theme="light"] .only-dark { display: none; }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.section-head h2 { margin: 0; font-size: 28px; }
.head-link { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; transition: color .2s ease; }
.head-arrow { display: inline-flex; margin-left: 0.3em; color: var(--plum); opacity: 0; transform: translateX(-0.3em); transition: opacity .2s ease, transform .2s ease; }
.head-arrow svg { width: 0.62em; height: 0.62em; }
.head-link:hover .head-arrow, .head-link:focus-visible .head-arrow { opacity: 1; transform: none; }
.head-link:hover, .head-link:focus-visible { color: var(--accent); }
@media (hover: none) {
  .head-arrow { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .head-arrow, .brand .logo { transition: none; } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: border-color .2s ease; }
.card:hover, .card:focus-visible { border-color: var(--border-strong); }
.card:hover .card-title, .card:focus-visible .card-title { color: var(--accent); }
.card-media { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: var(--surface); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media img.card-icon { width: 38%; height: auto; object-fit: contain; border-radius: 18%; }
.card-media { position: relative; }
.card-media img.card-badge { position: absolute; left: 14px; bottom: 12px; width: 52px; height: 52px; padding: 7px; object-fit: contain; border-radius: 12px; background: var(--bg); box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; }
.card-title { font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.2; transition: color .2s ease; }
.card-text { font-size: 15px; color: var(--muted); }

.loglist { margin: 0; padding: 0; list-style: none; }
.logrow { border-top: 1px solid var(--border); }
.logrow:last-child { border-bottom: 1px solid var(--border); }
.logrow a { display: flex; flex-wrap: wrap; gap: 4px 28px; padding: 14px 0; color: var(--text); text-decoration: none; }
.logrow a:hover .logrow-title, .logrow a:focus-visible .logrow-title { color: var(--accent); }
.logrow-date { flex: 0 0 130px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); padding-top: 3px; }
.logrow-main { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.logrow-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.logrow-title { font-family: var(--font-head); font-weight: 700; font-size: 19px; line-height: 1.25; transition: color .2s ease; }
.logrow-text { font-size: 15px; color: var(--muted); }
.loglist-compact .logrow a { padding: 14px 0; }
.loglist-compact .logrow-title { font-size: 18px; }
.loglist-compact .logrow-text { display: none; }
.year { margin: 40px 0 8px; font-family: var(--font-mono); font-weight: 500; font-size: 14px; letter-spacing: 0.12em; color: var(--muted); }

/* ---------- project page ---------- */
.project-video { margin: 8px 0 0; }
.project-grid { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 32px; }
.project-grid > .prose { flex: 999 1 560px; min-width: 0; }
.project-aside { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.box { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.box-plain { background: transparent; }
.box h2 { margin: 0 0 10px; font-size: 19px; }
.box .btn + .files { margin-top: 12px; }
.box-note { margin: 16px 0 14px; font-size: 15px; color: var(--muted); }
.files { margin: 0; padding: 0; list-style: none; }
.files a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); text-decoration: none; }
.file-main { display: flex; flex-direction: column; min-width: 0; }
.file-name { font-weight: 600; color: var(--accent); overflow-wrap: anywhere; }
.file-desc { font-size: 14px; color: var(--muted); }
.file-size { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; color: var(--muted); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.links { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }

/* ---------- log post ---------- */
.logpost .page-title { font-size: clamp(32px, 4vw, 46px); }
.logpost .project-video { margin: 0 0 32px; }
.partof { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 40px 0 0; padding: 16px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.partof .eyebrow { margin: 0; }
.partof-title { display: block; font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.prevnext { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0 0; }
.prevnext a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; }
.prevnext a .eyebrow { margin: 0; }
.prevnext-newer { text-align: right; }

/* ---------- Markdown content ---------- */
.prose { font-size: 17px; line-height: 1.65; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 36px 0 10px; font-size: 25px; }
.prose h3 { margin: 24px 0 8px; font-size: 20px; }
.prose h4 { margin: 24px 0 8px; font-size: 18px; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose .md-table { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 4px 0; }
.prose li > ul, .prose li > ol { margin: 4px 0; }
.prose img { display: block; margin: 20px auto; border-radius: 12px; }
.prose blockquote { padding: 2px 0 2px 22px; color: var(--muted); font-style: italic; box-shadow: inset 3px 0 0 var(--steel); }
.prose code { padding: 1px 7px; border-radius: 6px; font-family: var(--font-mono); font-size: 0.85em; background: var(--code-bg); border: 1px solid var(--border); overflow-wrap: anywhere; }
.prose pre { padding: 16px 18px; border-radius: 12px; background: var(--code-bg); border: 1px solid var(--border); overflow-x: auto; }
.prose pre code { padding: 0; border: 0; background: none; font-size: 14px; }
.prose hr { margin: 40px 0; border: 0; border-top: 1px solid var(--border); }
.md-table { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-family: var(--font-head); font-weight: 600; color: var(--muted); }
.md-note { margin: 0 0 20px; padding: 16px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.md-note > :last-child { margin-bottom: 0; }
.md-details { border-top: 1px solid var(--border); }
.md-details + .md-details { border-top: 1px solid var(--border); }
.prose .md-details:last-of-type { border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.md-details summary { padding: 14px 0; cursor: pointer; font-weight: 600; list-style-position: outside; }
.md-details-body { padding: 0 0 8px; color: var(--muted); }
.md-tabs { margin: 0 0 24px; }
.md-tablist { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.md-tablist button { min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--border); background: transparent; cursor: pointer; font-size: 15px; }
.md-tablist button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* click-to-play video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.video-play { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video-play:hover img { opacity: 1; }
.video-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--btn); line-height: 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose .video { margin: 28px 0; }

/* ---------- interactive controller map ---------- */
.pushmap { margin: 8px 0 28px; }
.pm-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.pm-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-modes button, .pm-toggle { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: transparent; cursor: pointer; font-size: 14px; }
.pm-modes button[aria-pressed="true"], .pm-toggle[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.pm-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.pm-search { flex: 1 1 200px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-size: 15px; }
.pm-layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.pm-stage-wrap { flex: 999 1 460px; min-width: 0; }
.pm-stage { position: relative; width: 100%; border-radius: 14px; background: #2b2a2c; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); overflow: hidden; }
.pm-stage-push { aspect-ratio: 700 / 550; }
.pm-ctl { position: absolute; padding: 0; border: 0; cursor: pointer; background: var(--c, #3a393c); border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); transition: transform .1s, box-shadow .1s, opacity .15s; }
.pm-ctl.k-knob { border-radius: 50%; background: radial-gradient(circle at 50% 40%, #59575c 0 45%, #2f2e31 46% 100%); }
.pm-ctl.k-strip { border-radius: 6px; background: #1d1c1e; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.pm-ctl.k-lcd { border-radius: 1px; background: rgba(255, 170, 60, .18); }
.pm-ctl.k-pad { border-radius: 4px; }
.pm-ctl:hover, .pm-ctl:focus-visible { box-shadow: 0 0 0 2px #fff; z-index: 2; outline: none; }
.pm-ctl.is-active { box-shadow: 0 0 0 3px #fff, 0 0 18px rgba(255,255,255,.4); z-index: 3; }
.pm-ctl.is-empty { opacity: .35; }
.pm-stage.has-filter .pm-ctl:not(.is-match) { opacity: .18; }
.pm-stage.has-filter .pm-ctl.is-match { box-shadow: 0 0 0 2px var(--btn), 0 0 12px var(--btn); }
.pm-lcd-panel { position: absolute; border-radius: 6px; background: #0e0d0c; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.pm-info { flex: 1 1 260px; min-width: 0; padding: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.pm-info-push { min-height: 220px; }
.pm-map + .pm-map { margin-top: 40px; }
.pm-map h3 { font-size: 22px; margin: 0 0 12px; }
.pm-info h3 { margin: 0 0 6px; font-size: 22px; }
.pm-info p { margin: 0 0 12px; font-size: 16px; }
.pm-entry { margin: 0 0 14px; }
.pm-entry .pm-role { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.pm-entry strong { display: block; font-family: var(--font-head); font-size: 18px; }
.pm-entry span.pm-desc { color: var(--muted); font-size: 15px; }
.pm-midi { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-top: 14px; }
.pm-hint { color: var(--muted); font-size: 15px; }
.pm-notes { margin: 14px 0 0; font-size: 16px; color: var(--muted); }
.pm-go { margin-top: 8px; }


/* ---------- the playable headline ---------- */
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .ch { display: inline-block; transition: color .1s, text-shadow .1s; }
.hero-title .ch.is-step { color: #ffffff; text-shadow: 0 0 0.18em rgba(199, 146, 207, .9); }
[data-theme="light"] .hero-title .ch.is-step { color: #c46fcf; text-shadow: 0 0 0.16em rgba(150, 97, 158, .45); }
.toy { display: inline-flex; align-items: center; white-space: nowrap; vertical-align: top; }
.toy-play { padding: 0; border: 0; background: none; font: inherit; line-height: inherit; letter-spacing: inherit; color: var(--plum); cursor: pointer; }
.toy-play:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.hero-title.is-fitted { white-space: nowrap; }
.toy-slot { position: relative; display: inline-block; flex: 0 0 auto; width: max(44px, 0.62em); height: max(44px, 0.62em); margin-left: 0.18em; }
.toy-arrow { position: absolute; inset: 0; padding: 0; border: 0; background: none; color: var(--plum); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity .3s ease, transform .3s ease, color .12s, filter .12s; }
.toy-arrow svg { width: 92%; height: 92%; }
.toy-arrow.is-lit { color: #ffffff; filter: drop-shadow(0 0 0.12em rgba(199, 146, 207, .9)); }
[data-theme="light"] .toy-arrow.is-lit { color: #c46fcf; filter: drop-shadow(0 0 0.1em rgba(150, 97, 158, .45)); }
.toy-slot .toy-dice { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(.8); pointer-events: none; transition: opacity .3s ease, transform .3s ease, border-color .2s; }
.toy.is-playing .toy-arrow { opacity: 0; transform: scale(.8); pointer-events: none; }
.toy.is-playing .toy-dice { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: none) {
  .toy:not(.is-playing) .toy-arrow svg { animation: toy-breathe .8s ease-in-out infinite alternate; }
}
@keyframes toy-breathe { from { opacity: 1; } to { opacity: .35; } }
.toy-btn { width: max(44px, 0.62em); height: max(44px, 0.62em); flex: 0 0 auto; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 0.16em; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font-size: inherit; }
.toy-btn:hover { border-color: var(--border-strong); }
.toy-btn svg { width: 0.3em; height: 0.3em; min-width: 22px; min-height: 22px; }
.toy-dice.is-rolled svg { animation: toy-roll .35s ease; }
@keyframes toy-roll { from { transform: rotate(-90deg) scale(.8); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .toy-arrow, .toy-slot .toy-dice, .hero-title .ch { transition: none; }
  .toy-arrow svg { animation: none !important; }
  .toy-dice.is-rolled svg { animation: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 920px) {
  .brand-sep, .brand-tag { display: none; }
}
@media (max-width: 720px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }
  .hero { padding-top: 28px; padding-bottom: 28px; }
  .feature { padding: 22px 18px; gap: 22px; }
  .section { padding-top: 40px; }
  /* phone header: small logo with "flosaic" underneath, links on the right */
  html { scroll-padding-top: 84px; }
  .header-row { padding-top: 10px; padding-bottom: 10px; padding-left: 16px; padding-right: 12px; }
  .brand { flex-direction: column; gap: 3px; }
  .brand-name { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; line-height: 1; }
  .brand-sep, .brand-tag { display: none; }
  .main-nav a { padding: 12px 9px; font-size: 17px; }
  .theme-toggle { margin-left: 6px; }
}
@media (max-width: 380px) {
  .main-nav a { font-size: 16px; padding: 12px 7px; }
  .logrow-date { flex-basis: 100%; }
  .prose { font-size: 16px; }
}
