:root{
  --bg:#FAFBFC; --ink:#14161A; --muted:#6A7180;
  --accent-a:#2E6BFF; --accent-b:#FF7A45;
  --hair:rgba(20,22,26,.10);
  color-scheme:light;
}
:root[data-theme="dark"]{
  --bg:#08090C; --ink:#E9ECF1; --muted:#8A93A3;
  --accent-a:#4C8DFF; --accent-b:#FF8A4C;
  --hair:rgba(233,236,241,.12);
  color-scheme:dark;
}
:root[data-theme="light"]{
  --bg:#FAFBFC; --ink:#14161A; --muted:#6A7180;
  --accent-a:#2E6BFF; --accent-b:#FF7A45;
  --hair:rgba(20,22,26,.10);
  color-scheme:light;
}

*{box-sizing:border-box}
html,body{margin:0; height:100%; background:var(--bg)}
.stage{
  position:fixed; inset:0; background:var(--bg);
  font-family:"Segoe UI",system-ui,-apple-system,Helvetica,Arial,sans-serif;
  overflow:hidden;
}
canvas{display:block; width:100%; height:100%; touch-action:none}

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

.toggle{
  position:absolute; top:20px; right:24px; z-index:2;
  color:var(--muted); background:transparent; border:1px solid var(--hair);
  border-radius:999px; padding:7px 13px; font:inherit; font-size:12px;
  letter-spacing:.06em; text-transform:uppercase; cursor:pointer;
  transition:color .2s, border-color .2s;
}
.toggle:hover{color:var(--ink); border-color:var(--muted)}
.toggle:focus-visible{outline:2px solid var(--accent-a); outline-offset:2px}

/* s275 (docs/62 PHASE 0, backlog section 313): the entity -- what Fidumy IS, visible in the four languages under the
   poster; pointer events pass through to the canvas so the dots still follow the finger. */
.entity{
  position:absolute; left:16px; right:16px; bottom:14px; z-index:2;
  text-align:center; color:var(--muted); pointer-events:none;
  font-size:clamp(11px, 1.5vw, 13px); line-height:1.45;
}
.entity p{margin:0 auto 3px; max-width:68ch}
